[#PKCS5_PBE_keyivgen] = PKCS5_PBE_keyivgen :mrdocs: Derive a PBE key and IV and initialize `ctx` for encryption/decryption (PKCS #5 v1.5). == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int PKCS5_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. | *pass* | Password octets (may be NULL if `passlen` is 0). | *passlen* | Password length in bytes, or ‐1 to use strlen(`pass).` | *param* | ASN.1 PBE parameters (salt, iteration count, and related fields). | *cipher* | Cipher algorithm used for PBE. | *md* | Digest used by the PBE key derivation. | *en_de* | 1 to encrypt, or 0 to decrypt. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#