[#CMAC_Final]
= CMAC&lowbar;Final
:mrdocs:

Finish a CMAC and write the authentication tag (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
CMAC&lowbar;Final(
    xref:CMAC_CTX.adoc[CMAC&lowbar;CTX]* ctx,
    unsigned char* out,
    size&lowbar;t* poutlen);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| CMAC context updated with CMAC&lowbar;Update()&period;
| *out*
| Buffer for the MAC (cipher block size), or NULL to query length only&period;
| *poutlen*
| On entry, capacity of `out&semi;` on success, bytes written (or required)&period;
|===


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