EVP_PKEY_new_CMAC_key

Create an EVP_PKEY wrapping a CMAC key (deprecated).

Synopsis

Declared in <openssl/evp.h>

[[deprecated]]
EVP_PKEY*
EVP_PKEY_new_CMAC_key(
    ENGINE* e,
    unsigned char const* priv,
    size_t len,
    EVP_CIPHER const* cipher);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

New EVP_PKEY of type EVP_PKEY_CMAC, or NULL on error.

Parameters

NameDescription
eUnused legacy ENGINE parameter; pass NULL.
privCMAC key bytes.
lenLength of priv in bytes.
cipherBlock cipher underlying the CMAC (for example AES-128-CBC).