1EVP_KDF-PBKDF2(7ossl)               OpenSSL              EVP_KDF-PBKDF2(7ossl)
2
3
4

NAME

6       EVP_KDF-PBKDF2 - The PBKDF2 EVP_KDF implementation
7

DESCRIPTION

9       Support for computing the PBKDF2 password-based KDF through the EVP_KDF
10       API.
11
12       The EVP_KDF-PBKDF2 algorithm implements the PBKDF2 password-based key
13       derivation function, as described in SP800-132; it derives a key from a
14       password using a salt and iteration count.
15
16   Identity
17       "PBKDF2" is the name for this implementation; it can be used with the
18       EVP_KDF_fetch() function.
19
20   Supported parameters
21       The supported parameters are:
22
23       "pass" (OSSL_KDF_PARAM_PASSWORD) <octet string>
24       "salt" (OSSL_KDF_PARAM_SALT) <octet string>
25       "iter" (OSSL_KDF_PARAM_ITER) <unsigned integer>
26           This parameter has a default value of 2048.
27
28       "properties" (OSSL_KDF_PARAM_PROPERTIES) <UTF8 string>
29       "digest" (OSSL_KDF_PARAM_DIGEST) <UTF8 string>
30           These parameters work as described in "PARAMETERS" in EVP_KDF(3).
31
32       "pkcs5" (OSSL_KDF_PARAM_PKCS5) <integer>
33           This parameter can be used to enable or disable SP800-132
34           compliance checks.  Setting the mode to 0 enables the compliance
35           checks.
36
37           The checks performed are:
38
39           - the iteration count is at least 1000.
40           - the salt length is at least 128 bits.
41           - the derived key length is at least 112 bits.
42
43           The default provider uses a default mode of 1 for backwards
44           compatibility, and the FIPS provider uses a default mode of 0.
45
46           The value string is expected to be a decimal number 0 or 1.
47

NOTES

49       A typical application of this algorithm is to derive keying material
50       for an encryption algorithm from a password in the "pass", a salt in
51       "salt", and an iteration count.
52
53       Increasing the "iter" parameter slows down the algorithm which makes it
54       harder for an attacker to perform a brute force attack using a large
55       number of candidate passwords.
56
57       No assumption is made regarding the given password; it is simply
58       treated as a byte sequence.
59

CONFORMING TO

61       SP800-132
62

SEE ALSO

64       EVP_KDF(3), EVP_KDF_CTX_new(3), EVP_KDF_CTX_free(3),
65       EVP_KDF_CTX_set_params(3), EVP_KDF_derive(3), "PARAMETERS" in
66       EVP_KDF(3)
67

HISTORY

69       This functionality was added to OpenSSL 3.0.
70
72       Copyright 2018-2022 The OpenSSL Project Authors. All Rights Reserved.
73
74       Licensed under the Apache License 2.0 (the "License").  You may not use
75       this file except in compliance with the License.  You can obtain a copy
76       in the file LICENSE in the source distribution or at
77       <https://www.openssl.org/source/license.html>.
78
79
80
813.0.5                             2022-11-01             EVP_KDF-PBKDF2(7ossl)
Impressum