5a285addbf
Changed PKEY/KDF API to call the new API. Added wrappers for PKCS5_PBKDF2_HMAC() and EVP_PBE_scrypt() to call the new EVP KDF APIs. Documentation updated. Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/6674)
22 lines
990 B
C
22 lines
990 B
C
/*
|
|
* Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.
|
|
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
|
|
*
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
* in the file LICENSE in the source distribution or at
|
|
* https://www.openssl.org/source/license.html
|
|
*/
|
|
|
|
int call_ctrl(int (*ctrl)(EVP_KDF_IMPL *impl, int cmd, va_list args),
|
|
EVP_KDF_IMPL *impl, int cmd, ...);
|
|
int kdf_str2ctrl(EVP_KDF_IMPL *impl,
|
|
int (*ctrl)(EVP_KDF_IMPL *impl, int cmd, va_list args),
|
|
int cmd, const char *str);
|
|
int kdf_hex2ctrl(EVP_KDF_IMPL *impl,
|
|
int (*ctrl)(EVP_KDF_IMPL *impl, int cmd, va_list args),
|
|
int cmd, const char *hex);
|
|
int kdf_md2ctrl(EVP_KDF_IMPL *impl,
|
|
int (*ctrl)(EVP_KDF_IMPL *impl, int cmd, va_list args),
|
|
int cmd, const char *md_name);
|
|
|