Create an EVP_PKEY wrapping a CMAC key (deprecated).
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);
Deprecated. Use of this entity is allowed but discouraged.
New EVP_PKEY of type EVP_PKEY_CMAC, or NULL on error.
| 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). |