EVP_MD_CTX_set_pkey_ctx

Attach or clear the EVP_PKEY_CTX owned by a digest context (for DigestSign/DigestVerify).

Synopsis

Declared in <openssl/evp.h>

void
EVP_MD_CTX_set_pkey_ctx(
    EVP_MD_CTX* ctx,
    EVP_PKEY_CTX* pctx);

Parameters

NameDescription
ctxDigest context that will hold pctx.
pctxKey context to assign; ownership is transferred to ctx. Pass NULL to clear.