[#EVP_MAC_CTX_new]
= EVP&lowbar;MAC&lowbar;CTX&lowbar;new
:mrdocs:

Allocate a new MAC operation context for `mac&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:EVP_MAC_CTX.adoc[EVP&lowbar;MAC&lowbar;CTX]*
EVP&lowbar;MAC&lowbar;CTX&lowbar;new(xref:EVP_MAC.adoc[EVP&lowbar;MAC]* mac);
----

== Return Value

New EVP&lowbar;MAC&lowbar;CTX, or NULL on failure&semi; free with EVP&lowbar;MAC&lowbar;CTX&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *mac*
| MAC method obtained from EVP&lowbar;MAC&lowbar;fetch() (reference is up&hyphen;reffed)&period;
|===


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