Derive a key from a password with PBKDF2‐HMAC‐SHA1 (RFC 2898).
Synopsis
Declared in <openssl/evp.h>
int
PKCS5_PBKDF2_HMAC_SHA1(
char const* pass,
int passlen,
unsigned char const* salt,
int saltlen,
int iter,
int keylen,
unsigned char* out);
Return Value
1 on success, or 0 on failure.
Parameters
Name |
Description |
pass |
Password bytes, or NULL. |
passlen |
Length of |
salt |
Salt bytes, or NULL when |
saltlen |
Length of |
iter |
Iteration count (should be large; typically at least 1000). |
keylen |
Desired derived key length in bytes. |
out |
Buffer of at least |
Created with MrDocs