OSSL_HPKE_CTX_set1_authpriv

Set the sender authentication private key for AUTH / PSKAUTH modes.

Synopsis

Declared in <openssl/hpke.h>

int
OSSL_HPKE_CTX_set1_authpriv(
    OSSL_HPKE_CTX* ctx,
    EVP_PKEY* priv);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
ctxSender HPKE context (call before OSSL_HPKE_encap()).
privSender authentication private key using the same KEM as the suite.