[#HMAC_Final]
= HMAC&lowbar;Final
:mrdocs:

Finalize an HMAC computation and write the MAC&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
HMAC&lowbar;Final(
    xref:HMAC_CTX.adoc[HMAC&lowbar;CTX]* ctx,
    unsigned char* md,
    unsigned int* len);
----

[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 error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| HMAC context to finalize&period;
| *md*
| Output buffer for the MAC&period;
| *len*
| Receives the MAC length in bytes&semi; may be NULL&period;
|===


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