Callback type that derives a key/IV from a password and initializes a cipher context for PBE.
Synopsis
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);
Return Value
1 on success, or 0 on failure.
Parameters
Name |
Description |
ctx |
Cipher context to initialize for encryption or decryption. |
pass |
Password bytes (not necessarily NUL‐terminated). |
passlen |
Length of |
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. |
Created with MrDocs