Build an X509_ALGOR describing PBKDF2 key-derivation parameters.
Declared in <openssl/x509.h>
X509_ALGOR*
PKCS5_pbkdf2_set(
int iter,
unsigned char* salt,
int saltlen,
int prf_nid,
int keylen);
Newly allocated X509_ALGOR, or NULL on error.
| Name | Description |
|---|---|
| iter | PBKDF2 iteration count. |
| salt | Salt bytes, or NULL to generate/omit as implemented. |
| saltlen | Length of salt in bytes. |
| prf_nid | NID of the PRF digest (e.g. NID_hmacWithSHA256), or 0 for the default. |
| keylen | Derived key length in bytes, or 0 if omitted from the parameters. |