[#PKCS5_pbkdf2_set]
= PKCS5&lowbar;pbkdf2&lowbar;set
:mrdocs:

Build an X509&lowbar;ALGOR describing PBKDF2 key&hyphen;derivation parameters&period;

== Synopsis

Declared in `&lt;openssl&sol;x509&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:X509_ALGOR.adoc[X509&lowbar;ALGOR]*
PKCS5&lowbar;pbkdf2&lowbar;set(
    int iter,
    unsigned char* salt,
    int saltlen,
    int prf&lowbar;nid,
    int keylen);
----

== Return Value

Newly allocated X509&lowbar;ALGOR, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *iter*
| PBKDF2 iteration count&period;
| *salt*
| Salt bytes, or NULL to generate&sol;omit as implemented&period;
| *saltlen*
| Length of `salt` in bytes&period;
| *prf&lowbar;nid*
| NID of the PRF digest (e&period;g&period; NID&lowbar;hmacWithSHA256), or 0 for the default&period;
| *keylen*
| Derived key length in bytes, or 0 if omitted from the parameters&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
