Set the sender authentication public key for AUTH / PSKAUTH modes.
Declared in <openssl/hpke.h>
int
OSSL_HPKE_CTX_set1_authpub(
OSSL_HPKE_CTX* ctx,
unsigned char const* pub,
size_t publen);
1 on success, or 0 on error.
| Name | Description |
|---|---|
| ctx | Receiver HPKE context (call before OSSL_HPKE_decap()). |
| pub | Encoded sender authentication public key. |
| publen | Length of pub in bytes. |