EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider
Jonathan Protzenko, Bryan Parno, Aymeric Fromherz, Chris Hawblitzel, Marina Polubelova, Karthikeyan Bhargavan, Benjamin Beurdouche, Joonwon Choi, Antoine Delignat-Lavaud, Cédric Fournet, Natalia Kulatova, Tahina Ramananandro
Abstract
We present EverCrypt: a comprehensive collection of verified, high-performance cryptographic functionalities available via a carefully designed API. The API provably supports agility (choosing between multiple algorithms for the same functionality) and multiplexing (choosing between multiple implementations of the same algorithm). Through abstraction and zero-cost generic programming, we show how agility can simplify verification without sacrificing performance, and we demonstrate how C and assembly can be composed and verified against shared specifications. We substantiate the effectiveness of these techniques with new verified implementations (including hashes, Curve25519, and AES-GCM) whose performance matches or exceeds the best unverified implementations. We validate the API design with two high-performance verified case studies built atop EverCrypt, resulting in line-rate performance for a secure network protocol and a Merkle-tree library, used in a production blockchain, that supports 2.7 million insertions/sec. Altogether, EverCrypt consists of over 124K verified lines of specs, code, and proofs, and it produces over 29K lines of C and 14K lines of assembly code.
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.
48 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
- "They're not that hard to mitigate": What Cryptographic Library Developers Think About Timing Attacks cites SoK: Computer-Aided Cryptography
- "They're not that hard to mitigate": What Cryptographic Library Developers Think About Timing Attacks cites HACL: A Verified Modern Cryptographic Library
- "They're not that hard to mitigate": What Cryptographic Library Developers Think About Timing Attacks cites Jasmin: High-Assurance and High-Speed Cryptography
- SoK: Computer-Aided Cryptography cites Vale: Verifying High-Performance Cryptographic Assembly Code
- SoK: Computer-Aided Cryptography cites Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
- SoK: Computer-Aided Cryptography cites HACL: A Verified Modern Cryptographic Library
- SoK: Computer-Aided Cryptography cites Jasmin: High-Assurance and High-Speed Cryptography
- Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises cites Vale: Verifying High-Performance Cryptographic Assembly Code
- Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises cites HACL: A Verified Modern Cryptographic Library
- Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises cites Jasmin: High-Assurance and High-Speed Cryptography
- High-Assurance Cryptography in the Spectre Era cites Vale: Verifying High-Performance Cryptographic Assembly Code
- High-Assurance Cryptography in the Spectre Era cites SoK: Computer-Aided Cryptography
- High-Assurance Cryptography in the Spectre Era cites Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
- High-Assurance Cryptography in the Spectre Era cites HACL: A Verified Modern Cryptographic Library
- High-Assurance Cryptography in the Spectre Era cites Jasmin: High-Assurance and High-Speed Cryptography
- HACL: A Verified Modern Cryptographic Library cites Vale: Verifying High-Performance Cryptographic Assembly Code
- Specification and verification in the field: Applying formal methods to BPF just-in-time compilers in the Linux kernel cites Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
- Specification and verification in the field: Applying formal methods to BPF just-in-time compilers in the Linux kernel cites HACL: A Verified Modern Cryptographic Library
- Jasmin: High-Assurance and High-Speed Cryptography cites Vale: Verifying High-Performance Cryptographic Assembly Code
- Jasmin: High-Assurance and High-Speed Cryptography cites HACL: A Verified Modern Cryptographic Library
Cited by top-tier papers48
- SoK: Computer-Aided CryptographyManuel Barbosa, Gilles Barthe, Karthik Bhargavan, Bruno Blanchet et al.S&P 2021 · 169 citations
- Specification and verification in the field: Applying formal methods to BPF just-in-time compilers in the Linux kernelLuke Nelson, Jacob Van Geffen, Emina Torlak, Xi WangOSDI 2020 · 72 citations
- "They're not that hard to mitigate": What Cryptographic Library Developers Think About Timing AttacksJan Jancar, Marcel Fourné, Daniel De Almeida Braga, Mohamed Sabt et al.S&P 2022 · 61 citations
- HARDLOG: Practical Tamper-Proof System Auditing Using a Novel Audit DeviceAdil Ahmad, Sangho Lee, Marcus PeinadoS&P 2022 · 46 citations
- High-Assurance Cryptography in the Spectre EraGilles Barthe, Sunjay Cauligi, Benjamin Grégoire, Adrien Koutsos et al.S&P 2021 · 42 citations
Builds on9
- WireGuard: Next Generation Kernel Network TunnelJason A. DonenfeldNDSS 2017 · 259 citations
- HACL*: A Verified Modern Cryptographic LibraryJean Karim Zinzindohoué, Karthikeyan Bhargavan, Jonathan Protzenko, Benjamin BeurdoucheCCS 2017 · 258 citations
- Jasmin: High-Assurance and High-Speed CryptographyJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Arthur Blot et al.CCS 2017 · 157 citations
- Vale: Verifying High-Performance Cryptographic Assembly CodeBarry Bond, Chris Hawblitzel, Manos Kapritsos, K. Rustan M. Leino et al.USENIX Security 2017 · 147 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
Related papers
- CryptOpt: Verified Compilation with Randomized Program Search for Cryptographic PrimitivesJoel Kuepper, Andres Erbsen, Jason Gross, Owen Conoly et al.PLDI 2023 · 12 citations
- HACLxN: Verified Generic SIMD Crypto (for all your favourite platforms)Marina Polubelova, Karthikeyan Bhargavan, Jonathan Protzenko, Benjamin Beurdouche et al.CCS 2020 · 17 citations
- 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
- Boosting the Performance of High-Assurance Cryptography: Parallel Execution and Optimizing Memory Access in Formally-Verified Line-Point Zero-KnowledgeSamuel Dittmer, Karim Eldefrawy, Stéphane Graham-Lengrand, Steve Lu et al.CCS 2023 · 5 citations
- EverParse: Verified Secure Zero-Copy Parsers for Authenticated Message FormatsTahina Ramananandro, Antoine Delignat-Lavaud, Cédric Fournet, Nikhil Swamy et al.USENIX Security 2019 · 70 citations
