Documentation
¶
Overview ¶
Package hpke implements anonymous hybrid public key encryption using X25519 and ML-KEM-768.
Seal generates a fresh X25519 key and ML-KEM encapsulation for each message. The resulting shared secrets are combined in a Thyrse transcript and used to encrypt and authenticate the plaintext. The scheme authenticates the ciphertext, not its sender: anyone with the receiver's public keys can create a valid ciphertext.
Index ¶
Constants ¶
View Source
const ( // Overhead is the size, in bytes, of the additional data added to a message by Seal. Overhead = headerSize + thyrse.TagSize )
Variables ¶
This section is empty.
Functions ¶
func Open ¶
func Open( domain string, receiver *ecdh.PrivateKey, receiverKEM *mlkem.DecapsulationKey768, ciphertext []byte, ) ([]byte, error)
Open decrypts a ciphertext produced by Seal using the receiver's X25519 and ML-KEM private keys.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.