EVP_PKEY_asn1_new

Allocate a new custom EVP_PKEY_ASN1_METHOD for algorithm id.

Synopsis

Declared in <openssl/evp.h>

EVP_PKEY_ASN1_METHOD*
EVP_PKEY_asn1_new(
    int id,
    int flags,
    char const* pem_str,
    char const* info);

Return Value

New mutable ASN.1 method, or NULL on allocation failure.

Parameters

NameDescription
idPublic-key algorithm NID for the method.
flagsASN1 method flags such as ASN1_PKEY_SIGPARAM_NULL.
pem_strPEM algorithm name string associated with this method, or NULL.
infoOptional human-readable description stored on the method, or NULL.