[#EVP_MAC_fetch]
= EVP&lowbar;MAC&lowbar;fetch
:mrdocs:

Fetch a MAC algorithm implementation from providers&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:EVP_MAC.adoc[EVP&lowbar;MAC]*
EVP&lowbar;MAC&lowbar;fetch(
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* libctx,
    char const* algorithm,
    char const* properties);
----

== Return Value

Fetched EVP&lowbar;MAC (refcount 1), or NULL on error&semi; free with EVP&lowbar;MAC&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *libctx*
| Library context for the fetch, or NULL for the default&period;
| *algorithm*
| MAC algorithm name (for example &quot;HMAC&quot; or &quot;CMAC&quot;)&period;
| *properties*
| Property query string, or NULL&period;
|===


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