EVP_EncryptFinal

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

NameDescription
ctxCipher context previously used with EVP_EncryptUpdate().
outBuffer receiving the final ciphertext block(s).
outlReceives the number of bytes written to out.