Allocate a key context for operations on an existing EVP_PKEY.
Declared in <openssl/evp.h>
EVP_PKEY_CTX*
EVP_PKEY_CTX_new_from_pkey(
OSSL_LIB_CTX* libctx,
EVP_PKEY* pkey,
char const* propquery);
New EVP_PKEY_CTX, or NULL on failure.
| Name | Description |
|---|---|
| libctx | Library context used to fetch algorithms, or NULL for the default. |
| pkey | Key that determines the algorithm and provides key material. |
| propquery | Property query for algorithm fetches, or NULL. |