PKCS5_pbkdf2_set

Build an X509_ALGOR describing PBKDF2 key-derivation parameters.

Synopsis

Declared in <openssl/x509.h>

X509_ALGOR*
PKCS5_pbkdf2_set(
    int iter,
    unsigned char* salt,
    int saltlen,
    int prf_nid,
    int keylen);

Return Value

Newly allocated X509_ALGOR, or NULL on error.

Parameters

NameDescription
iterPBKDF2 iteration count.
saltSalt bytes, or NULL to generate/omit as implemented.
saltlenLength of salt in bytes.
prf_nidNID of the PRF digest (e.g. NID_hmacWithSHA256), or 0 for the default.
keylenDerived key length in bytes, or 0 if omitted from the parameters.