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

Name

Description

ctx

Receiver HPKE context (call before OSSL_HPKE_decap()).

pub

Encoded sender authentication public key.

publen

Length of pub in bytes.

Created with MrDocs