[#PKCS5_pbe2_set_iv] = PKCS5_pbe2_set_iv :mrdocs: Build a PKCS#5 PBES2 AlgorithmIdentifier for `cipher` with optional IV and PBKDF2 PRF. == Synopsis Declared in `<openssl/x509.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:X509_ALGOR.adoc[X509_ALGOR]* PKCS5_pbe2_set_iv( xref:EVP_CIPHER-07.adoc[EVP_CIPHER] const* cipher, int iter, unsigned char* salt, int saltlen, unsigned char* aiv, int prf_nid); ---- == Return Value Newly allocated X509_ALGOR, or NULL on error. == Parameters [cols="1,4"] |=== | Name| Description | *cipher* | Cipher that defines the encryption scheme. | *iter* | PBKDF2 iteration count. | *salt* | Salt bytes, or NULL as implemented. | *saltlen* | Length of `salt` in bytes. | *aiv* | Explicit IV bytes, or NULL to generate one. | *prf_nid* | NID of the PBKDF2 PRF, or 0 for the default. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#