Module hpke

Module hpke 

Source
Expand description

This module implements a simplified version of Hybrid Public Key Encryption (HPKE).

It uses X25519 for key exchange and ChaCha20Poly1305 for symmetric encryption. The key derivation is done using SHA-256.

Structsยง

HpkeContext
A context for performing E2E encryption using X25519 and ChaCha20Poly1305.