EVP_CipherFinal_ex

Finalize a cipher operation (extended form) and write any remaining output.

Synopsis

Declared in <openssl/evp.h>

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

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxCipher context previously used with EVP_CipherUpdate().
outmBuffer receiving final output bytes.
outlReceives the number of bytes written to outm.