Skip to main content

Crate hide_crypto

Crate hide_crypto 

Source
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§

ChunkCipher
Keeps one expanded AEAD instance so streaming does not rekey per chunk.
ContentKey
A zeroizing content-encryption key, intentionally not Debug or Clone.
DerivedKey
A purpose-bound key derived from the content key; not Debug or Clone.
Hasher
Incremental form of hash, for data that arrives in pieces.
RecipientPublic
An HPKE-validated X-Wing recipient public key.
RecipientSecret
A zeroizing raw X-Wing seed, not HPKE DeriveKeyPair input material.
WrappedKey
Suite-1 encapsulation and authenticated encryption of a 32-byte CEK.

Enums§

CryptoError
An error that contains no secret key material or plaintext.

Functions§

derive_key
hash
mac
open
random_array
seal
unwrap_cek
verify_mac
wrap_cek