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

Name

Description

ctx

Decryption context previously updated with EVP_DecryptUpdate.

outm

Buffer receiving the final plaintext block(s).

outl

Receives the number of bytes written to outm.

Created with MrDocs