The lab's quantum-resistant key exchange runs end to end on the portable path of a library its authors verified
On the verified implementation, a full ML-KEM-768 key exchange ran end to end: the two sides' shared secrets matched, every size matched the standard, and the decapsulation key is 2400 bytes, the size the standard fixes.
ML-KEM is the quantum-resistant key-exchange standard NIST has published. The libcrux library implements it in Rust, and its authors report machine-checking that its portable implementation matches their formal specification of the standard and is free of panics. The lab moved its own key-exchange model onto that verified implementation and ran a complete exchange on it.
What it shows
The lab's earlier memory figures for a key exchange rested on an unverified library. It moved the key exchange onto the portable ML-KEM implementation in libcrux, which its authors report is verified, with the hax and F* tools, to match their own formal specification of the standard and to be free of panics. The lab did not re-run that proof.
A real exchange on the verified code
On that verified implementation the lab generated a key pair, wrapped a fresh secret with the public key, and unwrapped it with the private key. Both sides ended with the same secret, and the key, message and secret sizes matched the standard. The decapsulation key's size was read from the verified code and matches the standard; it is not a measurement of working memory.
Why it matters, and to whom
This is for teams that must defend the cryptography inside a product. A key exchange on a library with a published correctness proof removes one class of question, whether the code computes the standard, before anyone asks about the rest.
How it was checked
The evidence file names the lab's commit and the files it was read from, by their content hashes, with the fields the page prints: the library and its version, the code path used, the round trip, and the sizes.
What it does not claim
- It does not claim the verification as the lab's own. Proving the library correct is the work of its authors; the lab uses that property and did not re-run the proof.
- It does not claim a security proof. The verification covers correctness of the portable implementation, not the scheme's security for an optimised build, and not the handshake around it.
- It does not claim anything about hardware. The sizes were measured on an ordinary computer.
- It does not claim the idea is new. Using a verified library for a standard algorithm is good practice, and the verification is known; what the lab adds is a key exchange that runs end to end on it.
How to reproduce it
The evidence file names the lab commit and the files read. A stronger test would run the same exchange on the optimised builds of the library and on the target hardware.
Prior art
- Bhargavan, Kiefer and Tamvada, "Verified ML-KEM (Kyber) in Rust" (Cryspen): how the library's authors verified it
- Cryspen, libcrux: the verified library the lab runs
- Cryspen, hax: the tool that translates the Rust code for the proof
Evidence
- The evidence file for this result
- The published claim, with its limits
- All our published files, each with a fingerprint you can check
Related results across the group
- A formally verified ML-KEM library, liboqs and NIST's own test vectors agree byte for byte
- OpenSSL and liboqs, two stacks that share no code with the lab, interoperate on ML-KEM in both directions
- KyberSlash: a check that the linked library is a release after the public fix, and a measured timing test