docs: record D-QA-1, the mutual exchange (A-15), the hazmat gate (A-35) and the corrected ml-kem fact

This commit is contained in:
2026-11-25 07:47:46 +01:00
parent 91b84459b0
commit e0c6d53a99
6 changed files with 739 additions and 115 deletions
+18
View File
@@ -12,6 +12,24 @@ sealing and Tabellarius are expected to adopt it later.
- No I/O, no network, no clock. Randomness is passed in by the caller.
- No `unsafe` code.
## Use
```rust
let init = arcanum::exchange::initiate(&my_secret, &peer_public, context, &mut rng)?;
// send init.ciphertext() to the peer, which calls exchange::respond and sends back ct_ri
let session = init.finish(&ct_ri)?;
let psk = session.wireguard_psk(arcanum::epoch_at(unix_seconds)); // one exchange per 120 s epoch
```
## Checks
```
cargo test # KATs, binding, epochs, malformed input, golden vectors, feature graph
cargo deny check
cargo audit
cargo +nightly fuzz run --release untrusted_input -- -max_total_time=600
```
**Not audited.** Nothing here is called secure before an external audit.
The design, the risks and the threat model are in `docs/`.