EVP_MAC_fetch

Fetch a MAC algorithm implementation from providers.

Synopsis

Declared in <openssl/evp.h>

EVP_MAC*
EVP_MAC_fetch(
    OSSL_LIB_CTX* libctx,
    char const* algorithm,
    char const* properties);

Return Value

Fetched EVP_MAC (refcount 1), or NULL on error; free with EVP_MAC_free().

Parameters

NameDescription
libctxLibrary context for the fetch, or NULL for the default.
algorithmMAC algorithm name (for example "HMAC" or "CMAC").
propertiesProperty query string, or NULL.