[#EVP_PKEY_pairwise_check]
= EVP&lowbar;PKEY&lowbar;pairwise&lowbar;check
:mrdocs:

Validate that the public and private components of a key form a consistent pair&period;

== Synopsis

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

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

== Return Value

1 if the key pair is consistent, 0 if not, or a negative value on error&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]#
