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

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).

Created with MrDocs