[#EVP_PBE_KEYGEN] = EVP_PBE_KEYGEN :mrdocs: Callback type that derives a key/IV from a password and initializes a cipher context for PBE. == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- typedef int EVP_PBE_KEYGEN(xref:EVP_CIPHER_CTX.adoc[EVP_CIPHER_CTX]*, char const*, int, xref:ASN1_TYPE.adoc[ASN1_TYPE]*, xref:EVP_CIPHER-07.adoc[EVP_CIPHER] const*, xref:EVP_MD.adoc[EVP_MD] const*, int); ---- == 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 (not necessarily NUL‐terminated). | *passlen* | Length of `pass` in bytes, or ‐1 if `pass` is NUL‐terminated. | *param* | Algorithm‐specific ASN.1 parameters (for example a salt and iteration count). | *cipher* | Cipher algorithm to use. | *md* | Digest used in the PBE key‐derivation function. | *en_de* | 1 to encrypt, 0 to decrypt. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#