EVP_DecryptUpdate

Decrypt a chunk of ciphertext into out, updating the cipher context.

Synopsis

Declared in <openssl/evp.h>

int
EVP_DecryptUpdate(
    EVP_CIPHER_CTX* ctx,
    unsigned char* out,
    int* outl,
    unsigned char const* in,
    int inl);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxCipher context initialized for decryption.
outOutput buffer for plaintext (may be NULL to pass AAD for AEAD ciphers).
outlReceives the number of plaintext bytes written.
inCiphertext (or AAD) bytes to process.
inlNumber of bytes at in.