[#EVP_EncryptFinal_ex]
= EVP&lowbar;EncryptFinal&lowbar;ex
:mrdocs:

Finalize encryption and write any remaining ciphertext (including padding)&period;

== Synopsis

Declared in `&lt;openssl&sol;evp&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;EncryptFinal&lowbar;ex(
    xref:EVP_CIPHER_CTX.adoc[EVP&lowbar;CIPHER&lowbar;CTX]* ctx,
    unsigned char* out,
    int* outl);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Cipher context previously used with EVP&lowbar;EncryptUpdate()&period;
| *out*
| Buffer receiving final ciphertext bytes&period;
| *outl*
| Receives the number of bytes written to `out&period;`
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
