Skip to content

OpenSSL and liboqs, two stacks that share no code with the lab, interoperate on ML-KEM in both directions

At the ML-KEM-768 parameter set, a key sent by either stack is recovered by the other, in both directions, with matching shared secrets.

ML-KEM is the quantum-resistant key-exchange standard NIST has published. Two widely used software stacks now implement it: OpenSSL, and liboqs from the Open Quantum Safe project. Neither shares code with the lab. The lab ran a key exchange from one stack to the other and back, and compared the secrets each side ended with.

What it shows

A key-encapsulation mechanism has three steps: make a key pair, use the public key to wrap a fresh secret, and use the private key to unwrap it. Two implementations interoperate when one can do the wrapping and the other the unwrapping, and both end with the same secret.

The lab ran this in both directions between OpenSSL and liboqs, one exchange each way at the ML-KEM-768 parameter set the claim names: OpenSSL wraps and liboqs unwraps, then liboqs wraps and OpenSSL unwraps. It also checked that the keys and messages each stack produced have the lengths the standard sets. Every check passed, and the secrets matched in both directions.

Why it matters, and to whom

This is for teams that will put quantum-resistant key exchange into products where the two ends may run different software, Wi-Fi among them. Two stacks agreeing on the standard's contract is the first thing such a team needs before mixing them.

How it was checked

The evidence file names the command that drives both stacks and records its run on a clean copy of the code. The same run includes a control: a corrupted message must make the two sides end with different secrets, and it does.

Testing the check

The lab tested the check by breaking it on purpose. In one test it changed one byte of the message liboqs sent to OpenSSL, the two sides no longer agreed, and the check failed. A second test broke the self-test that runs even when a stack is missing, and the check failed again. In a third, it changed the expected message length for the parameter set the claim names, and the check failed.

What it does not claim

  • It does not claim a certification. Agreement between two stacks is not a validation by a certifying body.
  • It does not claim more than a smoke test. One exchange in each direction per parameter set shows the stacks agree; it is not a large randomised comparison.
  • It does not claim the stacks are free of other defects. It tests that they agree on the standard's inputs and outputs, not timing, memory safety or behaviour on malformed input.
  • It does not claim the method is new. Running one implementation against another is standard practice; what the lab adds is a recorded run, in both directions, with a control that shows the check can fail.

How to reproduce it

The evidence file names the command and the commit of the lab's code. A stronger test would add a third, separately written implementation and feed every stack malformed messages.

Prior art

Evidence

Related results across the group

All results from OrbitalProof · The OrbitalProof home page

How we show numbers

Every result figure links to the file it comes from. See our published files