[#EVP_MD_CTX_set_pkey_ctx]
= EVP&lowbar;MD&lowbar;CTX&lowbar;set&lowbar;pkey&lowbar;ctx
:mrdocs:

Attach or clear the EVP&lowbar;PKEY&lowbar;CTX owned by a digest context (for DigestSign&sol;DigestVerify)&period;

== Synopsis

Declared in `&lt;openssl&sol;evp&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
EVP&lowbar;MD&lowbar;CTX&lowbar;set&lowbar;pkey&lowbar;ctx(
    xref:EVP_MD_CTX.adoc[EVP&lowbar;MD&lowbar;CTX]* ctx,
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* pctx);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Digest context that will hold `pctx&period;`
| *pctx*
| Key context to assign&semi; ownership is transferred to `ctx&period;` Pass NULL to clear&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
