Derive a key and IV for password‐based encryption and initialize cctx (library‐context variant).
Synopsis
Declared in <openssl/evp.h>
int
PKCS5_PBE_keyivgen_ex(
EVP_CIPHER_CTX* cctx,
char const* pass,
int passlen,
ASN1_TYPE* param,
EVP_CIPHER const* cipher,
EVP_MD const* md,
int en_de,
OSSL_LIB_CTX* libctx,
char const* propq);
Return Value
1 on success, or 0 on failure.
Parameters
Name |
Description |
cctx |
Cipher context to initialize with the derived key and IV. |
pass |
Password bytes, or NULL. |
passlen |
Length of |
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. |
libctx |
Library context for provider‐aware derivation, or NULL for the default. |
propq |
Property query string, or NULL. |
Created with MrDocs