[#EVP_PKEY_encapsulate_init] = EVP_PKEY_encapsulate_init :mrdocs: Initialize a key context for a key‐encapsulation (KEM) encapsulate operation. == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_PKEY_encapsulate_init( xref:EVP_PKEY_CTX.adoc[EVP_PKEY_CTX]* ctx, xref:OSSL_PARAM.adoc[OSSL_PARAM] const params[]); ---- == Return Value 1 on success, or a non‐positive value on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | Context holding the recipient public key. | *params* | Optional OSSL_PARAM array terminated by OSSL_PARAM_END, or NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#