[#EVP_PKEY_is_a]
= EVP&lowbar;PKEY&lowbar;is&lowbar;a
:mrdocs:

Test whether a public&hyphen;key object is known under the given algorithm name&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;is&lowbar;a(
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY] const* pkey,
    char const* name);
----

== Return Value

1 if `pkey` matches `name,` or 0 otherwise (including when `pkey` is NULL)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pkey*
| Key to query&period;
| *name*
| Algorithm name or synonym (for example &quot;RSA&quot; or &quot;EC&quot;)&period;
|===


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