Chat plaintext is padded inside the ratchet AEAD to one of 256/512/1024/2048/4096/8192/16384/32768 bytes, with an explicit big-endian uint16 pad_len followed by the body and random fill. An observer sees only the bucket; the padding is authenticated by ChaCha20-Poly1305 and by the Noise session. The receiver trusts pad_len only, rejects an overrun before appending or persisting anything, and never infers a boundary from trailing bytes. fil chunks are unchanged. docs/PROTOCOL.md gains a normative Length buckets section, THREAT_MODEL replaces the no-padding limit, README notes the bucketed chat length.
27 lines
496 B
Rust
27 lines
496 B
Rust
pub mod backup;
|
|
pub mod cuprate;
|
|
pub mod dispatch;
|
|
pub mod file;
|
|
pub mod frame;
|
|
pub mod hs;
|
|
pub mod kem;
|
|
pub mod loc;
|
|
pub mod node;
|
|
pub mod outbox;
|
|
pub mod padding;
|
|
pub mod pay;
|
|
pub mod profile;
|
|
pub mod qr;
|
|
pub mod ratchet;
|
|
pub mod ratelimit;
|
|
pub mod sanitize;
|
|
pub mod session;
|
|
mod store;
|
|
pub mod tui;
|
|
pub mod wallet;
|
|
pub mod wallet_child;
|
|
|
|
pub use store::{
|
|
Friend, FriendProfile, Message, NewWallet, Payment, PaymentWrite, SelfIdentity, Store,
|
|
WalletRecord, resolve_store_passphrase,
|
|
};
|