Lune

CRYPTO2024Top-tier venue

Formally Verifying Kyber - Episode V: Machine-Checked IND-CCA Security and Correctness of ML-KEM in EasyCrypt

José Bacelar Almeida, Santiago Arranz-Olmos, Manuel Barbosa, Gilles Barthe, François Dupressoir, Benjamin Grégoire, Vincent Laporte, Jean-Christophe Léchenet, Cameron Low, Tiago Oliveira, Hugo Pacheco, Miguel Quaresma

Abstract

We present a formally verified proof of the correctness and IND-CCA security of ML-KEM, the Kyber-based Key Encapsulation Mechanism (KEM) undergoing standardization by NIST. The proof is machine-checked in EasyCrypt and it includes: 1) A formalization of the correctness (decryption failure probability) and IND-CPA security of the Kyber base public-key encryption scheme, following Bos et al. at Euro S&P 2018; 2) A formalization of the relevant variant of the Fujisaki-Okamoto transform in the Random Oracle Model (ROM), which follows closely (but not exactly) Hofheinz, Hövelmanns and Kiltz at TCC 2017; 3) A proof that the IND-CCA security of the ML-KEM specification and its correctness as a KEM follows from the previous results; 4) Two formally verified implementations of ML-KEM written in Jasmin that are provably constant-time, functionally equivalent to the ML-KEM specification and, for this reason, inherit the provable security guarantees established in the previous points. The top-level theorems give self-contained concrete bounds for the correctness and security of ML-KEM down to (a variant of) Module-LWE. We discuss how they are built modularly by leveraging various EasyCrypt features.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • SoK: Computer-Aided Cryptography cites Verified Correctness and Security of mbedTLS HMAC-DRBG
  • SoK: Computer-Aided Cryptography cites The Last Mile: High-Assurance and High-Speed Cryptographic Implementations
  • SoK: Computer-Aided Cryptography cites Jasmin: High-Assurance and High-Speed Cryptography
  • KEM-IND-CCA-Preserving Compilation of Jasmin's ML-KEM cites SoK: Computer-Aided Cryptography
  • KEM-IND-CCA-Preserving Compilation of Jasmin's ML-KEM cites The Last Mile: High-Assurance and High-Speed Cryptographic Implementations
  • KEM-IND-CCA-Preserving Compilation of Jasmin's ML-KEM cites Jasmin: High-Assurance and High-Speed Cryptography
  • The Last Mile: High-Assurance and High-Speed Cryptographic Implementations cites Verified Correctness and Security of mbedTLS HMAC-DRBG
  • The Last Mile: High-Assurance and High-Speed Cryptographic Implementations cites Jasmin: High-Assurance and High-Speed Cryptography
  • Faster Verification of Faster Implementations: Combining Deductive and Circuit-Based Reasoning in EasyCrypt cites SoK: Computer-Aided Cryptography
  • Faster Verification of Faster Implementations: Combining Deductive and Circuit-Based Reasoning in EasyCrypt cites The Last Mile: High-Assurance and High-Speed Cryptographic Implementations
  • Faster Verification of Faster Implementations: Combining Deductive and Circuit-Based Reasoning in EasyCrypt cites Jasmin: High-Assurance and High-Speed Cryptography
  • Jasmin: High-Assurance and High-Speed Cryptography cites Verified Correctness and Security of mbedTLS HMAC-DRBG
  • Protecting Cryptographic Code Against Spectre-RSB: (and, in Fact, All Known Spectre Variants) cites SoK: Computer-Aided Cryptography
  • Protecting Cryptographic Code Against Spectre-RSB: (and, in Fact, All Known Spectre Variants) cites The Last Mile: High-Assurance and High-Speed Cryptographic Implementations
  • Protecting Cryptographic Code Against Spectre-RSB: (and, in Fact, All Known Spectre Variants) cites Jasmin: High-Assurance and High-Speed Cryptography
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. KEM-IND-CCA-Preserving Compilation of Jasmin's ML-KEMSantiago Arranz-Olmos, Gilles Barthe, Lionel Blatter, Benjamin Gregoire et al.CCS 2026 · 1 citation
  2. Protecting Cryptographic Code Against Spectre-RSB: (and, in Fact, All Known Spectre Variants)Santiago Arranz-Olmos, Gilles Barthe, Chitchanok Chuengsatiansup, Benjamin Grégoire et al.ASPLOS 2025 · 1 citation
  3. Shadowfax: Hybrid Security and Deniability for AKEMsPhillip Gajland, Vincent Hwang, Jonas JanneckUSENIX Security 2026
  4. The SecureDrop Protocol: End-to-End Encrypted Whistleblowing for AllGiulio Berra, Felix Linker, Luca Maier, Cory Francis Myers et al.CCS 2026
  5. Faster Verification of Faster Implementations: Combining Deductive and Circuit-Based Reasoning in EasyCryptJosé Bacelar Almeida, Gustavo Xavier Delerue Marinho Alves, Manuel Barbosa, Gilles Barthe et al.S&P 2025

Builds on15

  1. SoK: Computer-Aided CryptographyManuel Barbosa, Gilles Barthe, Karthik Bhargavan, Bruno Blanchet et al.S&P 2021 · 169 citations
  2. Jasmin: High-Assurance and High-Speed CryptographyJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Arthur Blot et al.CCS 2017 · 157 citations
  3. A Key-Recovery Timing Attack on Post-quantum Primitives Using the Fujisaki-Okamoto Transformation and Its Application on FrodoKEMQian Guo, Thomas Johansson, Alexander NilssonCRYPTO 2020 · 84 citations
  4. The Last Mile: High-Assurance and High-Speed Cryptographic ImplementationsJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Benjamin Grégoire et al.S&P 2020 · 67 citations
  5. Verified Correctness and Security of mbedTLS HMAC-DRBGKatherine Q. Ye, Matthew Green, Naphat Sanguansin, Lennart Beringer et al.CCS 2017 · 59 citations

Related papers

  1. Proof-of-Possession for KEM Certificates using Verifiable GenerationTim Güneysu, Philip W. Hodges, Georg Land, Mike Ounsworth et al.CCS 2022 · 7 citations
  2. Formal Verification of Saber's Public-Key Encryption Scheme in EasyCryptAndreas Hülsing, Matthias Meijers, Pierre-Yves StrubCRYPTO 2022 · 11 citations
  3. Faster Lattice-Based KEMs via a Generic Fujisaki-Okamoto Transform Using Prefix HashingJulien Duman, Kathrin Hövelmanns, Eike Kiltz, Vadim Lyubashevsky et al.CCS 2021 · 1 citation
  4. Machine-Checked Security for rmXMSS as in RFC 8391 and SPHINCS+\mathrm {SPHINCS^{+}} Manuel Barbosa, François Dupressoir, Benjamin Grégoire, Andreas Hülsing et al.CRYPTO 2023 · 3 citations
  5. MPC-in-the-Head Framework without Repetition and its Applications to the Lattice-based CryptographyWeihao Bai, Long Chen, Qianwen Gao, Zhenfeng ZhangS&P 2024 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines