EVP_PKEY_CTX_new_id

Allocate a key context for algorithm id, optionally using an ENGINE.

Synopsis

Declared in <openssl/evp.h>

EVP_PKEY_CTX*
EVP_PKEY_CTX_new_id(
    int id,
    ENGINE* e);

Return Value

New EVP_PKEY_CTX, or NULL on failure.

Parameters

NameDescription
idAlgorithm identifier such as EVP_PKEY_RSA.
eENGINE implementing the algorithm, or NULL for the default implementation.