EVP_PKEY_meth_new

Allocate a new custom EVP_PKEY_METHOD for algorithm id (deprecated).

Synopsis

Declared in <openssl/evp.h>

[[deprecated]]
EVP_PKEY_METHOD*
EVP_PKEY_meth_new(
    int id,
    int flags);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Description

Prefer provider-based EVP_KEYMGMT / EVP_SIGNATURE implementations for new code.

Return Value

New EVP_PKEY_METHOD, or NULL on allocation failure.

Parameters

NameDescription
idPublic-key algorithm NID this method implements.
flagsMethod flags such as EVP_PKEY_FLAG_AUTOARGLEN or EVP_PKEY_FLAG_SIGCTX_CUSTOM.