hide-format
Wire format for the HIDE protocol:
the 16-byte preamble, the bounded canonical CBOR header (recipient and
signature stanzas, metadata) and the constants every other crate agrees on
(CHUNK_LEN, MAX_RECIPIENTS, MAX_HEADER_LEN).
Every length field in untrusted input is checked against a fixed limit before anything is allocated. Parsing and encoding here; no cryptography.
use ;
let preamble = new?;
let bytes: = preamble.encode;
let decoded = decode?;
assert_eq!;
assert!;
let metadata = Metadata ;
let encoded = metadata.encode?;
assert!;
# Ok::
The normative description lives in
spec/hide-0.1.md;
the frozen vectors under conformance/vectors/ are what this crate is tested
against.
Experimental and unaudited. The format may still change before 1.0. Licensed Apache-2.0.