Finish encryption and write any remaining padded ciphertext bytes.

Synopsis

Declared in <openssl/evp.h>

int
EVP_EncryptFinal(
    EVP_CIPHER_CTX* ctx,
    unsigned char* out,
    int* outl);

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

ctx

Cipher context previously used with EVP_EncryptUpdate().

out

Buffer receiving the final ciphertext block(s).

outl

Receives the number of bytes written to out.

Created with MrDocs