EVP_PBE_KEYGEN_EX

Extended password-based encryption key-setup callback with library context support.

Synopsis

Declared in <openssl/evp.h>

typedef int EVP_PBE_KEYGEN_EX(EVP_CIPHER_CTX*, char const*, int, ASN1_TYPE*, EVP_CIPHER const*, EVP_MD const*, int, OSSL_LIB_CTX*, char const*);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxCipher context that receives the derived key and IV.
passPassword bytes (may contain embedded NULs when passlen is set).
passlenLength of pass in bytes, or -1 if pass is a NUL-terminated string.
paramAlgorithm-specific PBE parameters (for example PBKDF2PARAM).
cipherCipher to initialize.
mdDigest used by the PBE scheme when applicable.
en_de1 to encrypt, 0 to decrypt.
libctxLibrary context used when fetching algorithms, or NULL for the default.
propqProperty query for algorithm fetches, or NULL.