Verified Cryptographic Code for Everybody
Brett Boston, Samuel Breese, Joey Dodds, Mike Dodds, Brian Huffman, Adam Petcher, Andrei Stefanescu
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider 引用了 Vale: Verifying High-Performance Cryptographic Assembly Code
- EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider 引用了 Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
- EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider 引用了 The Last Mile: High-Assurance and High-Speed Cryptographic Implementations
- EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider 引用了 HACL: A Verified Modern Cryptographic Library
- Modular Verification of Secure and Leakage-Free Systems: From Application Specification to Circuit-Level Implementation 引用了 EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider
- Modular Verification of Secure and Leakage-Free Systems: From Application Specification to Circuit-Level Implementation 引用了 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 引用了 HACL: A Verified Modern Cryptographic Library
- Modular Verification of Secure and Leakage-Free Systems: From Application Specification to Circuit-Level Implementation 引用了 Verifying Hardware Security Modules with Information-Preserving Refinement
- Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises 引用了 Vale: Verifying High-Performance Cryptographic Assembly Code
- Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises 引用了 HACL: A Verified Modern Cryptographic Library
- The Last Mile: High-Assurance and High-Speed Cryptographic Implementations 引用了 Vale: Verifying High-Performance Cryptographic Assembly Code
- The Last Mile: High-Assurance and High-Speed Cryptographic Implementations 引用了 Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
- The Last Mile: High-Assurance and High-Speed Cryptographic Implementations 引用了 HACL: A Verified Modern Cryptographic Library
- HACL: A Verified Modern Cryptographic Library 引用了 Vale: Verifying High-Performance Cryptographic Assembly Code
- Verifying Hardware Security Modules with Information-Preserving Refinement 引用了 Vale: Verifying High-Performance Cryptographic Assembly Code
- Verifying Hardware Security Modules with Information-Preserving Refinement 引用了 EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider
- Verifying Hardware Security Modules with Information-Preserving Refinement 引用了 Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
- Verifying Hardware Security Modules with Information-Preserving Refinement 引用了 HACL: A Verified Modern Cryptographic Library
引用它的顶会 Paper2
- Verifying Hardware Security Modules with Information-Preserving RefinementAnish Athalye, M. Frans Kaashoek, Nickolai ZeldovichOSDI 2022 · 17 次引用
- Modular Verification of Secure and Leakage-Free Systems: From Application Specification to Circuit-Level ImplementationAnish Athalye, Henry Corrigan-Gibbs, M. Frans Kaashoek, Joseph Tassarotti 等SOSP 2024 · 2 次引用
它引用的 Paper6
- HACL*: A Verified Modern Cryptographic LibraryJean Karim Zinzindohoué, Karthikeyan Bhargavan, Jonathan Protzenko, Benjamin BeurdoucheCCS 2017 · 258 次引用
- Vale: Verifying High-Performance Cryptographic Assembly CodeBarry Bond, Chris Hawblitzel, Manos Kapritsos, K. Rustan M. Leino 等USENIX Security 2017 · 147 次引用
- Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without CompromisesAndres Erbsen, Jade Philipoom, Jason Gross, Robert Sloan 等S&P 2019 · 147 次引用
- EverCrypt: A Fast, Verified, Cross-Platform Cryptographic ProviderJonathan Protzenko, Bryan Parno, Aymeric Fromherz, Chris Hawblitzel 等S&P 2020 · 114 次引用
- The Last Mile: High-Assurance and High-Speed Cryptographic ImplementationsJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Benjamin Grégoire 等S&P 2020 · 67 次引用
相关 Paper
- CryptOpt: Verified Compilation with Randomized Program Search for Cryptographic PrimitivesJoel Kuepper, Andres Erbsen, Jason Gross, Owen Conoly 等PLDI 2023 · 12 次引用
- 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 等CCS 2019 · 35 次引用
- Signed Cryptographic Program Verification with Typed CryptoLineYu-Fu Fu, Jiaxiang Liu, Xiaomu Shi, Ming-Hsien Tsai 等CCS 2019 · 19 次引用
- Formal Security and Functional Verification of Cryptographic Protocol Implementations in RustKarthikeyan Bhargavan, Lasse Letager Hansen, Franziskus Kiefer, Jonas Schneider-Bensch 等CCS 2025 · 1 次引用
- Jasmin: High-Assurance and High-Speed CryptographyJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Arthur Blot 等CCS 2017 · 157 次引用
