Formally verifying Kyber Episode IV: Implementation Correctness
Gives the first formally verified Kyber implementations: an EasyCrypt spec, Jasmin code, and machine-checked functional-correctness proofs, with near hand-optimized performance.
Schemes: Kyber
Findings (quotes checked against the source text)
-
First formally verified implementations of Kyber, and likely the first for any post-quantum cryptosystem.
we present the first formally verified implementations of Kyber and, to the best of our knowledge, the first such implementations of any post-quantum cryptosystem.
-
The EasyCrypt specification of Kyber is written to closely follow the NIST submission pseudocode.
We give a (readable) formal specification of Kyber in the EasyCrypt proof assistant, which is syntactically very close to the pseudocode description of the scheme as given in the most recent version of the NIST submission.
-
Open-source Jasmin implementations of Kyber come with machine-checked proofs of functional correctness against the EasyCrypt spec.
We present high-assurance open-source implementations of Kyber written in the Jasmin language, along with machine-checked proofs that they are functionally correct with respect to the EasyCrypt specification.
-
The verified code reaches performance close to existing hand-optimized C and assembly implementations.
showing that our code achieves performance close to existing hand-optimized implementations in C and assembly.
For builders
If a chain uses Kyber for key exchange, the Jasmin/EasyCrypt verified implementation is a candidate reference to audit or adopt, instead of trusting unverified C or assembly.
Limits
Only the ePrint abstract was provided, so no full-text numbers were read. Proves functional correctness against the EasyCrypt spec, not side-channel resistance or the spec's security.
Topics: kem benchmarks