|
◆ CRYPT_EAL_PKCS5_PBKDF2
#define CRYPT_EAL_PKCS5_PBKDF2 |
( |
|
key, |
|
|
|
keyLen, |
|
|
|
salt, |
|
|
|
saltLen, |
|
|
|
it, |
|
|
|
out, |
|
|
|
len |
|
) |
| CRYPT_EAL_Pbkdf2(CRYPT_MAC_HMAC_SHA256, key, keyLen, salt, saltLen, it, out, len) |
PKCS5 PBKDF This MPI encapsulates the CRYPT_EAL_Pbkdf2 API. By default, the CRYPT_MAC_HMAC_SHA256 algorithm is used for calculation.
- 参数
-
key | [IN] Password, a string input by the user. |
keyLen | [IN] Password length, which is a positive integer not 0. |
salt | [IN] Salt value, a string input by the user. |
saltLen | [IN] Salt length, any positive integer that is not 0. |
it | [IN] Iteration times, the value can be a positive integer that is not 0. The value can be 1000 in special performance scenarios. The default value is 10000, 10000000 is recommended in scenarios where performance is insensitive or security requirements are high. |
out | [OUT] Derive the key. |
len | [IN] Length of the derived key, the value range is [1, 0xFFFFFFFF]. |
- 返回值
-
|