EVP_MD_fetch

Fetch a digest implementation from providers.

Synopsis

Declared in <openssl/evp.h>

EVP_MD*
EVP_MD_fetch(
    OSSL_LIB_CTX* ctx,
    char const* algorithm,
    char const* properties);

Return Value

Fetched EVP_MD (free with EVP_MD_free()), or NULL on failure.

Parameters

NameDescription
ctxLibrary context to search, or NULL for the default.
algorithmDigest algorithm name (for example "SHA256").
propertiesOptional property query string, or NULL.