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

Name

Description

libctx

Library context for the fetch, or NULL for the default.

name

Algorithm name (for example "RSA" or "EC").

propquery

Property query string, or NULL.

Created with MrDocs