EVP_DecryptFinal

Finish decryption and write any remaining plaintext (legacy wrapper).

Synopsis

Declared in <openssl/evp.h>

int
EVP_DecryptFinal(
    EVP_CIPHER_CTX* ctx,
    unsigned char* outm,
    int* outl);

Return Value

1 on success, 0 on padding/authentication failure, or a negative value on error.

Parameters

NameDescription
ctxDecryption context previously updated with EVP_DecryptUpdate.
outmBuffer receiving the final plaintext block(s).
outlReceives the number of bytes written to outm.