wolfssl-examples/pk/hpke
Aidan Keefe 6715f35753 hpke_context revised 2026-07-29 13:00:17 -06:00
..
Makefile Add HPKE seal/open context example 2026-07-29 13:39:21 -04:00
README.md Add HPKE seal/open context example 2026-07-29 13:39:21 -04:00
hpke_context.c hpke_context revised 2026-07-29 13:00:17 -06:00
hpke_test.c add example of how to use HPKE with all options (#356) 2023-07-10 14:25:20 -07:00

README.md

HPKE Examples

Demonstrates HPKE (Hybrid Public Key Encryption, RFC 9180): public-key encryption built from a key encapsulation mechanism (KEM), a key derivation function (KDF), and an authenticated cipher (AEAD).

To build wolfSSL for these examples run ./configure --enable-hpke --enable-aesgcm --enable-curve25519 --enable-ecc && make && sudo make install

  • hpke_test.c - one-shot seal/open (wc_HpkeSealBase() / wc_HpkeOpenBase()) with all supported KEM/KDF/AEAD combinations.
  • hpke_context.c - seal/open contexts (wc_HpkeInitSealContext() / wc_HpkeContextSealBase() and the open equivalents): one key encapsulation protecting an ordered sequence of messages.
make
./hpke_test
HPKE test success
./hpke_context
...
HPKE context test success