[#EVP_CipherFinal]
= EVP&lowbar;CipherFinal
:mrdocs:

Finalize a cipher operation and write any remaining output bytes&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;CipherFinal(
    xref:EVP_CIPHER_CTX.adoc[EVP&lowbar;CIPHER&lowbar;CTX]* ctx,
    unsigned char* outm,
    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;CipherUpdate()&period;
| *outm*
| Buffer receiving final output bytes&period;
| *outl*
| Receives the number of bytes written to `outm&period;`
|===


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