Callback type that derives a key/IV from a password and initializes a cipher context for PBE.
Declared in <openssl/evp.h>
typedef int EVP_PBE_KEYGEN(EVP_CIPHER_CTX*, char const*, int, ASN1_TYPE*, EVP_CIPHER const*, EVP_MD const*, int);
1 on success, or 0 on failure.
| 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. |