[#EVP_PKEY_CTX_set_kem_op]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;set&lowbar;kem&lowbar;op
:mrdocs:

Select the KEM operation mode on a key context (for example &quot;encapsulate&quot;)&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;set&lowbar;kem&lowbar;op(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    char const* op);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Key context prepared for a KEM algorithm&period;
| *op*
| Operation name understood by the provider&period;
|===


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