[#EVP_EncryptFinal] = EVP_EncryptFinal :mrdocs: Finish encryption and write any remaining padded ciphertext bytes. == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_EncryptFinal( xref:EVP_CIPHER_CTX.adoc[EVP_CIPHER_CTX]* ctx, unsigned char* out, int* outl); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | 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.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#