module OpenSSL::HPKE

Hybrid Public Key Encryption (HPKE) as defined in RFC 9180. HPKE encrypts messages to the holder of a public key by combining a Key Encapsulation Mechanism (KEM), a Key Derivation Function (KDF), and an AEAD scheme, which together form an OpenSSL::HPKE::Suite.

The sender encapsulates a key to the recipient and seals messages through an OpenSSL::HPKE::Context::Sender; the recipient decapsulates that key and opens the messages through an OpenSSL::HPKE::Context::Receiver. Only HPKE base mode is currently supported.

Availability depends on the underlying OpenSSL: the HPKE API was added in OpenSSL 3.2.