Foundational Integration Verification of a Cryptographic Server
Andres Erbsen, Jade Philipoom, Dustin Jamner, Ashley Lin, Samuel Gruetter, Clément Pit-Claudel, Adam Chlipala
Abstract
We present verification of a bare-metal server built using diverse implementation techniques and languages against a whole-system input-output specification in terms of machine code, network packets, and mathematical specifications of elliptic-curve cryptography. We used very different formal-reasoning techniques throughout the stack, ranging from computer algebra, symbolic execution, and verification-condition generation to interactive verification of functional programs including compilers for C-like and functional languages. All these component specifications and domain-specific reasoning techniques are defined and justified against common foundations in the Coq proof assistant. Connecting these components is a minimalistic specification style based on functional programs and assertions over simple objects, omnisemantics for program execution, and basic separation logic for memory layout. This design enables us to bring the components together in a top-level correctness theorem that can be audited without understanding or trusting the internal interfaces and tools. Our case study is a simple cryptographic server for flipping of a bit of state through public-key authenticated network messages, and its proof shows total functional correctness including static bounds on memory usage. This paper also describes our experiences with the specific verification tools we build upon, along with detailed analysis of reasons behind the widely varying levels of productivity we experienced between combinations of tools and tasks.
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.
4 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Smooth, Integrated Proofs of Cryptographic Constant Time for Nondeterministic Programs and Compilers cites Integration verification across software and hardware for a simple embedded system
- Smooth, Integrated Proofs of Cryptographic Constant Time for Nondeterministic Programs and Compilers cites EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider
- Smooth, Integrated Proofs of Cryptographic Constant Time for Nondeterministic Programs and Compilers cites Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
- Smooth, Integrated Proofs of Cryptographic Constant Time for Nondeterministic Programs and Compilers cites Jasmin: High-Assurance and High-Speed Cryptography
- EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider cites Verified Correctness and Security of mbedTLS HMAC-DRBG
- EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider cites Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
- EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider cites Jasmin: High-Assurance and High-Speed Cryptography
- KEM-IND-CCA-Preserving Compilation of Jasmin's ML-KEM cites Integration verification across software and hardware for a simple embedded system
- KEM-IND-CCA-Preserving Compilation of Jasmin's ML-KEM cites Smooth, Integrated Proofs of Cryptographic Constant Time for Nondeterministic Programs and Compilers
- KEM-IND-CCA-Preserving Compilation of Jasmin's ML-KEM cites EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider
- KEM-IND-CCA-Preserving Compilation of Jasmin's ML-KEM cites Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
- KEM-IND-CCA-Preserving Compilation of Jasmin's ML-KEM cites Jasmin: High-Assurance and High-Speed Cryptography
- Modular Verification of Secure and Leakage-Free Systems: From Application Specification to Circuit-Level Implementation cites Integration verification across software and hardware for a simple embedded system
- Modular Verification of Secure and Leakage-Free Systems: From Application Specification to Circuit-Level Implementation cites EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider
- Modular Verification of Secure and Leakage-Free Systems: From Application Specification to Circuit-Level Implementation cites Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
- Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises cites Jasmin: High-Assurance and High-Speed Cryptography
- Jasmin: High-Assurance and High-Speed Cryptography cites Verified Correctness and Security of mbedTLS HMAC-DRBG
Cited by top-tier papers4
- Unifying Compositional Verification and Certified Compilation with a Three-Dimensional Refinement AlgebraYu Zhang, Jérémie Koenig, Zhong Shao, Yuting WangPOPL 2025 · 2 citations
- Modular Verification of Secure and Leakage-Free Systems: From Application Specification to Circuit-Level ImplementationAnish Athalye, Henry Corrigan-Gibbs, M. Frans Kaashoek, Joseph Tassarotti et al.SOSP 2024 · 2 citations
- Smooth, Integrated Proofs of Cryptographic Constant Time for Nondeterministic Programs and CompilersOwen Conoly, Andres Erbsen, Adam ChlipalaPLDI 2025 · 1 citation
- KEM-IND-CCA-Preserving Compilation of Jasmin's ML-KEMSantiago Arranz-Olmos, Gilles Barthe, Lionel Blatter, Benjamin Gregoire et al.CCS 2026 · 1 citation
Builds on9
- Jasmin: High-Assurance and High-Speed CryptographyJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Arthur Blot et al.CCS 2017 · 157 citations
- Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without CompromisesAndres Erbsen, Jade Philipoom, Jason Gross, Robert Sloan et al.S&P 2019 · 147 citations
- EverCrypt: A Fast, Verified, Cross-Platform Cryptographic ProviderJonathan Protzenko, Bryan Parno, Aymeric Fromherz, Chris Hawblitzel et al.S&P 2020 · 114 citations
- Verified Correctness and Security of mbedTLS HMAC-DRBGKatherine Q. Ye, Matthew Green, Naphat Sanguansin, Lennart Beringer et al.CCS 2017 · 59 citations
- Integration verification across software and hardware for a simple embedded systemAndres Erbsen, Samuel Gruetter, Joonwon Choi, Clark Wood et al.PLDI 2021 · 29 citations
Related papers
- 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
- Owl: Compositional Verification of Security Protocols via an Information-Flow Type SystemJoshua Gancher, Sydney Gibson, Pratap Singh, Samvid Dharanikota et al.S&P 2023
- Verified Cryptographic Code for EverybodyBrett Boston, Samuel Breese, Joey Dodds, Mike Dodds et al.CAV 2021 · 7 citations
- Certified Verification of Algebraic Properties on Low-Level Mathematical Constructs in Cryptographic ProgramsMing-Hsien Tsai, Bow-Yaw Wang, Bo-Yin YangCCS 2017 · 19 citations
- Foundational Multi-Modal Program VerifiersVladimir Gladshtein, George Pîrlea, Qiyuan Zhao, Vitaly Kurin et al.POPL 2026 · 4 citations
