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

Name

Description

md_type

NID identifying the digest algorithm.

pkey_type

Legacy NID associating the digest with a public‐key type, or NID_undef.

Created with MrDocs