[#PKCS5_v2_PBE_keyivgen] = PKCS5_v2_PBE_keyivgen :mrdocs: Derive a key and IV from a PKCS#5 v2 PBE AlgorithmIdentifier and initialize `ctx.` == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int PKCS5_v2_PBE_keyivgen( xref:EVP_CIPHER_CTX.adoc[EVP_CIPHER_CTX]* ctx, char const* pass, int passlen, xref:ASN1_TYPE.adoc[ASN1_TYPE]* param, xref:EVP_CIPHER-07.adoc[EVP_CIPHER] const* cipher, xref:EVP_MD.adoc[EVP_MD] const* md, int en_de); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | Cipher context to initialize for encryption or decryption. | *pass* | Password bytes. | *passlen* | Length of `pass,` or ‐1 if `pass` is a NUL‐terminated string. | *param* | ASN.1 parameters from the PBE AlgorithmIdentifier. | *cipher* | Cipher suggested by the caller (may be overridden by `param).` | *md* | Digest suggested by the caller (may be overridden by `param).` | *en_de* | Non‐zero to encrypt, zero to decrypt. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#