Initialize ctx for decryption with cipher, key, iv, and optional parameters.
Synopsis
Declared in <openssl/evp.h>
int
EVP_DecryptInit_ex2(
EVP_CIPHER_CTX* ctx,
EVP_CIPHER const* cipher,
unsigned char const* key,
unsigned char const* iv,
OSSL_PARAM const params[]);
Return Value
1 on success, or 0 on failure.
Parameters
Name |
Description |
ctx |
Cipher context to (re)initialize. |
cipher |
Cipher algorithm, or NULL to reuse the algorithm already associated with |
key |
Decryption key bytes, or NULL to set the cipher without a key yet. |
iv |
Initialization vector, or NULL when unused or set later. |
params |
Optional OSSL_PARAM array applied after initialization, or NULL. |
Created with MrDocs