hide-object
The sealed container of the HIDE protocol: one content key wrapped to up to 64 recipients with X25519 + ML-KEM-768 (X-Wing), payload streamed in 64 KiB authenticated chunks, optional hybrid Ed25519 + ML-DSA-65 signature over the plaintext transcript.
Decryption writes to a staging writer and only reports success once the FINAL chunk authenticates; nothing is published before then. The decrypted filename is returned as data, never used as a path.
use RecipientSecret;
use ;
use Cursor;
let secret = generate?;
let recipients = ;
let metadata = Metadata ;
let mut container = Vecnew;
encrypt?;
let mut staging = Vecnew;
let verified = decrypt_to_staging?;
assert_eq!;
assert_eq!;
assert!;
# Ok::
Memory is constant regardless of input size (fixed buffers, one ChunkCipher).
Frozen conformance vectors pin the wire bytes.
Experimental and unaudited. Do not protect data you cannot afford to lose or expose. Licensed Apache-2.0.