[#PKCS5_pbkdf2_set] = PKCS5_pbkdf2_set :mrdocs: Build an X509_ALGOR describing PBKDF2 key‐derivation parameters. == Synopsis Declared in `<openssl/x509.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:X509_ALGOR.adoc[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 [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#