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
+2 -1
View File
@@ -31,7 +31,8 @@ fn no_source_file_contains_unsafe() {
let text = fs::read_to_string(&f).unwrap();
for (n, line) in text.lines().enumerate() {
let code = line.split("//").next().unwrap_or("");
assert!(!code.contains("unsafe"), "{}:{}: {line}", f.display(), n + 1);
let opts_in = code.contains("unsafe") && code.trim() != "#![forbid(unsafe_code)]";
assert!(!opts_in, "{}:{}: {line}", f.display(), n + 1);
}
}
}