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

Test whether a key context is for the named key type&period;

== Synopsis

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

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

== Return Value

1 if `ctx` matches `keytype,` or 0 otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Key context to query&period;
| *keytype*
| Algorithm name such as &quot;RSA&quot; or &quot;EC&quot;&period;
|===


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