[#EVP_PKEY_new_CMAC_key] = EVP_PKEY_new_CMAC_key :mrdocs: Create an EVP_PKEY wrapping a CMAC key (deprecated). == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] xref:EVP_PKEY.adoc[EVP_PKEY]* EVP_PKEY_new_CMAC_key( xref:ENGINE.adoc[ENGINE]* e, unsigned char const* priv, size_t len, xref:EVP_CIPHER-07.adoc[EVP_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_PKEY of type EVP_PKEY_CMAC, or NULL on error. == Parameters [cols="1,4"] |=== | Name| Description | *e* | Unused legacy ENGINE parameter; pass NULL. | *priv* | CMAC key bytes. | *len* | Length of `priv` in bytes. | *cipher* | Block cipher underlying the CMAC (for example AES‐128‐CBC). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#