EVP_MD_meth_new

Allocate a mutable EVP_MD method object for custom digests (deprecated).

Synopsis

Declared in <openssl/evp.h>

[[deprecated]]
EVP_MD*
EVP_MD_meth_new(
    int md_type,
    int pkey_type);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Description

Deprecated; prefer provider-based digests instead of building EVP_MD methods by hand.

Return Value

New EVP_MD, or NULL on allocation failure.

Parameters

NameDescription
md_typeNID identifying the digest algorithm.
pkey_typeLegacy NID associating the digest with a public-key type, or NID_undef.