EVP_PKEY_auth_decapsulate_init

Initialize authenticated decapsulation on ctx using an authentication public key.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_auth_decapsulate_init(
    EVP_PKEY_CTX* ctx,
    EVP_PKEY* authpub,
    OSSL_PARAM const params[]);

Return Value

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

Parameters

NameDescription
ctxKey context for a KEM / encapsulate-capable algorithm.
authpubAuthentication public key used by the authenticated decapsulation operation.
paramsOptional OSSL_PARAM array of algorithm parameters, or NULL.