EVP_PKEY_decapsulate_init

Initialise a key context for KEM decapsulation.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_decapsulate_init(
    EVP_PKEY_CTX* ctx,
    OSSL_PARAM const params[]);

Return Value

1 on success, or 0 / a negative value on failure.

Parameters

NameDescription
ctxKey context holding the recipient private key.
paramsOptional OSSL_PARAM array of algorithm parameters, or NULL.