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

Name

Description

ctx

Cipher context previously used with EVP_DecryptUpdate().

outm

Buffer receiving final plaintext bytes (may need a full block of space).

outl

Receives the number of bytes written to outm.

Created with MrDocs