EVP_CipherFinal

Finalize a cipher operation and write any remaining output bytes.

Synopsis

Declared in <openssl/evp.h>

int
EVP_CipherFinal(
    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.