Allocate a new MAC operation context for mac.

Synopsis

Declared in <openssl/evp.h>

EVP_MAC_CTX*
EVP_MAC_CTX_new(EVP_MAC* mac);

Return Value

New EVP_MAC_CTX, or NULL on failure; free with EVP_MAC_CTX_free().

Parameters

Name

Description

mac

MAC method obtained from EVP_MAC_fetch() (reference is up‐reffed).

Created with MrDocs