Expand description
Local cryptographic primitives for the experimental HIDE/0.1 format.
Suite 1 is HPKE base mode with X-Wing, HKDF-SHA256, and ChaCha20-Poly1305. This crate is unaudited and makes no anonymity or forward-secrecy guarantee.
Structs§
- Chunk
Cipher - Keeps one expanded AEAD instance so streaming does not rekey per chunk.
- Content
Key - A zeroizing content-encryption key, intentionally not Debug or Clone.
- Derived
Key - A purpose-bound key derived from the content key; not Debug or Clone.
- Hasher
- Incremental form of
hash, for data that arrives in pieces. - Recipient
Public - An HPKE-validated X-Wing recipient public key.
- Recipient
Secret - A zeroizing raw X-Wing seed, not HPKE
DeriveKeyPairinput material. - Wrapped
Key - Suite-1 encapsulation and authenticated encryption of a 32-byte CEK.
Enums§
- Crypto
Error - An error that contains no secret key material or plaintext.