OSSL_HPKE_CTX_set1_authpub

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

Synopsis

Declared in <openssl/hpke.h>

int
OSSL_HPKE_CTX_set1_authpub(
    OSSL_HPKE_CTX* ctx,
    unsigned char const* pub,
    size_t publen);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
ctxReceiver HPKE context (call before OSSL_HPKE_decap()).
pubEncoded sender authentication public key.
publenLength of pub in bytes.