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

Name

Description

ctx

Cipher context previously used with EVP_CipherUpdate().

outm

Buffer receiving final output bytes.

outl

Receives the number of bytes written to outm.

Created with MrDocs