[#EVP_PKEY_cmp]
= EVP&lowbar;PKEY&lowbar;cmp
:mrdocs:

Compare two keys for equality including parameters when present (deprecated&semi; use EVP&lowbar;PKEY&lowbar;eq)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
EVP&lowbar;PKEY&lowbar;cmp(
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY] const* a,
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY] const* b);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

1 if equal, 0 if they differ, or &hyphen;1&sol;&hyphen;2 on type mismatch or error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| First key&period;
| *b*
| Second key&period;
|===


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