EVP_PKEY_CTX_new_from_name

Allocate a key context for an algorithm fetched by name from providers.

Synopsis

Declared in <openssl/evp.h>

EVP_PKEY_CTX*
EVP_PKEY_CTX_new_from_name(
    OSSL_LIB_CTX* libctx,
    char const* name,
    char const* propquery);

Return Value

New EVP_PKEY_CTX, or NULL on error; free with EVP_PKEY_CTX_free().

Parameters

NameDescription
libctxLibrary context for the fetch, or NULL for the default.
nameAlgorithm name (for example "RSA" or "EC").
propqueryProperty query string, or NULL.