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

Name

Description

pkey

Key that supplies the algorithm and material for the context.

e

Optional ENGINE implementing the algorithm, or NULL.

Created with MrDocs