Post-quantum sealing: vault keys and messages use X25519 + ML-KEM-768 #41
Loading…
Reference in a new issue
No description provided.
Delete branch "pq-sealing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Board #1024.
Vault keys and inbox messages were sealed to X25519 alone, so whoever keeps a copy of the server's data could open every vault once a quantum computer exists ("harvest now, decrypt later"). Everything else (XChaCha20-Poly1305, Argon2id, HKDF) is already symmetric with 256-bit keys.
Changes
crypto::seal_tois always hybrid:X25519 ephemeral ‖ ML-KEM-768 ct ‖ blob, keyed with X-Wing's combiner (checked against draft-connolly-cfrg-xwing-kem-11). A blob stays sealed unless both X25519 and ML-KEM are broken.kem_pkis part ofIdentity, rosterMemberand pinnedContact. It's pinned and compared like the other keys, and covered by the fingerprint. Malformed keys are refused by clients and by the server.Not backwards compatible (on purpose, nobody uses it yet): accounts, rosters and wrapped keys from before this PR don't load.
Tested
cargo clippy --all-targets -D warningsandcargo test(core 49, client 36, server, FFI, wasm, extension under Node).wasm/build.sh(docs/srebuilt) and the extension build.🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.