Lune

CAV2021Top-tier venue

Verified Cryptographic Code for Everybody

Brett Boston, Samuel Breese, Joey Dodds, Mike Dodds, Brian Huffman, Adam Petcher, Andrei Stefanescu

Abstract

Abstract We have completed machine-assisted proofs of two highly-optimized cryptographic primitives, AES-256-GCM and SHA-384. We have verified that the implementations of these primitives, written in a mix of C and x86 assembly, are memory safe and functionally correct, by which we mean input-output equivalent to their algorithmic specifications. Our proofs were completed using SAW, a bounded cryptographic verification tool which we have extended to handle embedded x86. The code we have verified comes from AWS LibCrypto. This code is identical to BoringSSL and very similar to OpenSSL, from which it ultimately derives. We believe we are the first to formally verify these implementations, which protect the security of nearly everybody on the internet.

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.

2 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

  • EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider cites Vale: Verifying High-Performance Cryptographic Assembly Code
  • 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 The Last Mile: High-Assurance and High-Speed Cryptographic Implementations
  • EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider cites HACL: A Verified Modern Cryptographic Library
  • 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
  • Modular Verification of Secure and Leakage-Free Systems: From Application Specification to Circuit-Level Implementation cites HACL: A Verified Modern Cryptographic Library
  • Modular Verification of Secure and Leakage-Free Systems: From Application Specification to Circuit-Level Implementation cites Verifying Hardware Security Modules with Information-Preserving Refinement
  • 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
  • The Last Mile: High-Assurance and High-Speed Cryptographic Implementations cites Vale: Verifying High-Performance Cryptographic Assembly Code
  • The Last Mile: High-Assurance and High-Speed Cryptographic Implementations cites Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
  • The Last Mile: High-Assurance and High-Speed Cryptographic Implementations cites HACL: A Verified Modern Cryptographic Library
  • HACL: A Verified Modern Cryptographic Library cites Vale: Verifying High-Performance Cryptographic Assembly Code
  • Verifying Hardware Security Modules with Information-Preserving Refinement cites Vale: Verifying High-Performance Cryptographic Assembly Code
  • Verifying Hardware Security Modules with Information-Preserving Refinement cites EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider
  • Verifying Hardware Security Modules with Information-Preserving Refinement cites Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
  • Verifying Hardware Security Modules with Information-Preserving Refinement cites HACL: A Verified Modern Cryptographic Library
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. Verifying Hardware Security Modules with Information-Preserving RefinementAnish Athalye, M. Frans Kaashoek, Nickolai ZeldovichOSDI 2022 · 17 citations
  2. 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

Builds on6

  1. HACL*: A Verified Modern Cryptographic LibraryJean Karim Zinzindohoué, Karthikeyan Bhargavan, Jonathan Protzenko, Benjamin BeurdoucheCCS 2017 · 258 citations
  2. Vale: Verifying High-Performance Cryptographic Assembly CodeBarry Bond, Chris Hawblitzel, Manos Kapritsos, K. Rustan M. Leino et al.USENIX Security 2017 · 147 citations
  3. 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
  4. EverCrypt: A Fast, Verified, Cross-Platform Cryptographic ProviderJonathan Protzenko, Bryan Parno, Aymeric Fromherz, Chris Hawblitzel et al.S&P 2020 · 114 citations
  5. 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

Related papers

  1. CryptOpt: Verified Compilation with Randomized Program Search for Cryptographic PrimitivesJoel Kuepper, Andres Erbsen, Jason Gross, Owen Conoly et al.PLDI 2023 · 12 citations
  2. Machine-Checked Proofs for Cryptographic Standards: Indifferentiability of Sponge and Secure High-Assurance Implementations of SHA-3José Bacelar Almeida, Cécile Baritel-Ruet, Manuel Barbosa, Gilles Barthe et al.CCS 2019 · 35 citations
  3. Signed Cryptographic Program Verification with Typed CryptoLineYu-Fu Fu, Jiaxiang Liu, Xiaomu Shi, Ming-Hsien Tsai et al.CCS 2019 · 19 citations
  4. Formal Security and Functional Verification of Cryptographic Protocol Implementations in RustKarthikeyan Bhargavan, Lasse Letager Hansen, Franziskus Kiefer, Jonas Schneider-Bensch et al.CCS 2025 · 1 citation
  5. Jasmin: High-Assurance and High-Speed CryptographyJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Arthur Blot et al.CCS 2017 · 157 citations
Dusk over the sea between two cliffs drawn in fine vertical lines