Create an HPKE context for the given mode, suite, and sender/receiver role.
Declared in <openssl/hpke.h>
OSSL_HPKE_CTX*
OSSL_HPKE_CTX_new(
int mode,
OSSL_HPKE_SUITE suite,
int role,
OSSL_LIB_CTX* libctx,
char const* propq);
New context, or NULL on error; free with OSSL_HPKE_CTX_free().
| Name | Description |
|---|---|
| mode | HPKE mode (OSSL_HPKE_MODE_BASE, PSK, AUTH, or PSKAUTH). |
| suite | KEM/KDF/AEAD suite identifiers. |
| role | OSSL_HPKE_ROLE_SENDER or OSSL_HPKE_ROLE_RECEIVER. |
| libctx | Library context for algorithm fetches, or NULL for the default. |
| propq | Optional property query string, or NULL. |