EVP_PKEY_CTX_new

Allocate a key context for operations with pkey.

Synopsis

Declared in <openssl/evp.h>

EVP_PKEY_CTX*
EVP_PKEY_CTX_new(
    EVP_PKEY* pkey,
    ENGINE* e);

Return Value

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

Parameters

NameDescription
pkeyKey that supplies the algorithm and material for the context.
eOptional ENGINE implementing the algorithm, or NULL.