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

Name

Description

ctx

Cipher context initialized for decryption.

out

Output buffer for plaintext (may be NULL to pass AAD for AEAD ciphers).

outl

Receives the number of plaintext bytes written.

in

Ciphertext (or AAD) bytes to process.

inl

Number of bytes at in.

Created with MrDocs