feat: X-Wing (draft -11), mutual exchange, WireGuard PSK per epoch, sealed box

X-Wing is composed from ml-kem, x25519-dalek, sha3 and shake and matches the
draft's vectors. The PSK comes from a mutual exchange (each peer encapsulates
to the other, QA A-15) bound to the full transcript in Arcanum's own HKDF layer
(QA D-QA-1). Low-order X25519 values are refused. Deterministic entry points
sit behind the off-by-default hazmat feature, enabled only for the tests.
This commit is contained in:
2026-11-25 07:38:55 +01:00
parent c7d050ed65
commit 89b5329f06
15 changed files with 1316 additions and 118 deletions
+7
View File
@@ -22,7 +22,14 @@ chacha20poly1305 = { version = "0.11", default-features = false, features = ["al
rand_core = { version = "0.10", default-features = false }
zeroize = { version = "1.8", default-features = false, features = ["alloc", "zeroize_derive"] }
[features]
# Deterministic entry points (`_derand`, `from_seed`) for the known-answer tests. Off by default;
# never enable it in a release build (tests/feature_hygiene.rs checks the normal dependency graph).
hazmat = []
[dev-dependencies]
# The tests enable `hazmat` on the crate itself; dev-dependencies never reach a normal build.
arcanum = { path = ".", features = ["hazmat"] }
# Reference implementation for the differential test only; never linked into the library.
x-wing = { version = "=0.1.1" }
chacha20 = { version = "0.10", default-features = false, features = ["rng"] }