Initialize a key context for a key-encapsulation (KEM) encapsulate operation.
Declared in <openssl/evp.h>
int
EVP_PKEY_encapsulate_init(
EVP_PKEY_CTX* ctx,
OSSL_PARAM const params[]);
1 on success, or a non-positive value on failure.
| Name | Description |
|---|---|
| ctx | Context holding the recipient public key. |
| params | Optional OSSL_PARAM array terminated by OSSL_PARAM_END, or NULL. |