5 EVP_PKEY_CTX_set1_pbe_pass
6 - generic KDF support functions
10 #include <openssl/kdf.h>
12 int EVP_PKEY_CTX_set1_pbe_pass(EVP_PKEY_CTX *pctx, unsigned char *pass,
17 These functions are generic support functions for all KDF algorithms.
19 EVP_PKEY_CTX_set1_pbe_pass() sets the password to the B<passlen> first
24 We really should have a few more, such as EVP_PKEY_CTX_set1_kdf_salt,
25 EVP_PKEY_CTX_set1_kdf_key (to be used by the algorithms that use a
26 key, such as hkdf), EVP_PKEY_CTX_set1_kdf_md (same thing here).
32 There is also support for string based control operations via
33 L<EVP_PKEY_CTX_ctrl_str(3)>.
34 The B<password> can be directly specified using the B<type> parameter
35 "pass" or given in hex encoding using the "hexpass" parameter.
39 Just as for the function description, the strings "salt", "hexsalt",
40 "key", "hexkey" and "md" should be generically specified, and
41 supported by the algorithms that use them.
47 All these functions return 1 for success and 0 or a negative value for failure.
48 In particular a return value of -2 indicates the operation is not supported by
49 the public key algorithm.
53 L<EVP_PKEY_CTX_new(3)>,
54 L<EVP_PKEY_CTX_ctrl_str(3)>,
59 EVP_PKEY_CTX_set1_pbe_pass() was converted from a macro to a function in
64 Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.
66 Licensed under the Apache License 2.0 (the "License"). You may not use
67 this file except in compliance with the License. You can obtain a copy
68 in the file LICENSE in the source distribution or at
69 L<https://www.openssl.org/source/license.html>.