EVP_DecryptFinal_ex

Finalize decryption and write any remaining plaintext (including padding removal).

Synopsis

Declared in <openssl/evp.h>

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

Return Value

1 on success, or 0 on failure (for example padding errors).

Parameters

NameDescription
ctxCipher context previously used with EVP_DecryptUpdate().
outmBuffer receiving final plaintext bytes (may need a full block of space).
outlReceives the number of bytes written to outm.