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

Name

Description

id

Public‐key algorithm NID for the method.

flags

ASN1 method flags such as ASN1_PKEY_SIGPARAM_NULL.

pem_str

PEM algorithm name string associated with this method, or NULL.

info

Optional human‐readable description stored on the method, or NULL.

Created with MrDocs