Module hpke::aead

source ·
Expand description

Traits and structs for authenticated encryption schemes

Structs

  • The HPKE receiver’s context. This is what you use to open ciphertexts and export secrets.
  • The HPKE senders’s context. This is what you use to seal plaintexts and export secrets.
  • An authenticated encryption tag
  • The implementation of AES-128-GCM
  • The implementation of AES-256-GCM
  • The implementation of ChaCha20-Poly1305
  • An inert underlying Aead implementation. The open/seal routines panic. The new() function returns an EmptyAeadImpl, and that is all of the functionality this struct has.
  • An AEAD which can only be used for its export() function. The open() and seal() methods on an AeadCtxR or AeadCtxS which uses this AEAD underlyingly will panic if you call them

Traits

  • Represents authenticated encryption functionality