Initialize a CMAC context with a key and block cipher (deprecated; prefer EVP_MAC).
Declared in <openssl/cmac.h>
[[deprecated]]
int
CMAC_Init(
CMAC_CTX* ctx,
void const* key,
size_t keylen,
EVP_CIPHER const* cipher,
ENGINE* impl);
Deprecated. Use of this entity is allowed but discouraged.
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| ctx | CMAC context to initialize. |
| key | CMAC key material. |
| keylen | Length of key in bytes. |
| cipher | Block cipher implementing CMAC (for example AES-128-CBC). |
| impl | Optional ENGINE implementing cipher, or NULL. |