[#EVP_PKEY_private_check]
= EVP&lowbar;PKEY&lowbar;private&lowbar;check
:mrdocs:

Validate the private key associated with a key context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;private&lowbar;check(xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx);
----

== Return Value

1 if the private key is valid, or a non&hyphen;positive value on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Context holding the key to check (typically created with EVP&lowbar;PKEY&lowbar;CTX&lowbar;new)&period;
|===


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