[#EVP_PKEY_decapsulate_init]
= EVP&lowbar;PKEY&lowbar;decapsulate&lowbar;init
:mrdocs:

Initialise a key context for KEM decapsulation&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;decapsulate&lowbar;init(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    xref:OSSL_PARAM.adoc[OSSL&lowbar;PARAM] const params[]);
----

== Return Value

1 on success, or 0 &sol; a negative value on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Key context holding the recipient private key&period;
| *params*
| Optional OSSL&lowbar;PARAM array of algorithm parameters, or NULL&period;
|===


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