[#EVP_PKEY_new_CMAC_key]
= EVP&lowbar;PKEY&lowbar;new&lowbar;CMAC&lowbar;key
:mrdocs:

Create an EVP&lowbar;PKEY wrapping a CMAC key (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]*
EVP&lowbar;PKEY&lowbar;new&lowbar;CMAC&lowbar;key(
    xref:ENGINE.adoc[ENGINE]* e,
    unsigned char const* priv,
    size&lowbar;t len,
    xref:EVP_CIPHER-07.adoc[EVP&lowbar;CIPHER] const* cipher);
----

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

New EVP&lowbar;PKEY of type EVP&lowbar;PKEY&lowbar;CMAC, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *e*
| Unused legacy ENGINE parameter&semi; pass NULL&period;
| *priv*
| CMAC key bytes&period;
| *len*
| Length of `priv` in bytes&period;
| *cipher*
| Block cipher underlying the CMAC (for example AES&hyphen;128&hyphen;CBC)&period;
|===


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