Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
Andres Erbsen, Jade Philipoom, Jason Gross, Robert Sloan, Adam Chlipala
摘要
We introduce a new approach for implementing cryptographic arithmetic in short high-level code with machinechecked proofs of functional correctness. We further demonstrate that simple partial evaluation is sufficient to transform such initial code into the fastest-known C code, breaking the decadesold pattern that the only fast implementations are those whose instruction-level steps were written out by hand. These techniques were used to build an elliptic-curve library that achieves competitive performance for 80 prime fields and multiple CPU architectures, showing that implementation and proof effort scales with the number and complexity of conceptually different algorithms, not their use cases. As one outcome, we present the first verified high-performance implementation of P-256, the most widely used elliptic curve. Implementations from our library were included in BoringSSL to replace existing specialized code, for inclusion in several large deployments for Chrome, Android, and CloudFlare.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 47 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider 引用了 Vale: Verifying High-Performance Cryptographic Assembly Code
- 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
- EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider 引用了 Jasmin: High-Assurance and High-Speed Cryptography
- RefinedC: automating the foundational verification of C code with refined ownership types 引用了 HACL: A Verified Modern Cryptographic Library
- SoK: Computer-Aided Cryptography 引用了 Vale: Verifying High-Performance Cryptographic Assembly Code
- SoK: Computer-Aided Cryptography 引用了 EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider
- SoK: Computer-Aided Cryptography 引用了 The Last Mile: High-Assurance and High-Speed Cryptographic Implementations
- SoK: Computer-Aided Cryptography 引用了 HACL: A Verified Modern Cryptographic Library
- SoK: Computer-Aided Cryptography 引用了 Jasmin: High-Assurance and High-Speed Cryptography
- 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 引用了 HACL: A Verified Modern Cryptographic Library
- The Last Mile: High-Assurance and High-Speed Cryptographic Implementations 引用了 Jasmin: High-Assurance and High-Speed Cryptography
- HACL: A Verified Modern Cryptographic Library 引用了 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 引用了 EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider
- Specification and verification in the field: Applying formal methods to BPF just-in-time compilers in the Linux kernel 引用了 HACL: A Verified Modern Cryptographic Library
- Jasmin: High-Assurance and High-Speed Cryptography 引用了 Vale: Verifying High-Performance Cryptographic Assembly Code
- Jasmin: High-Assurance and High-Speed Cryptography 引用了 HACL: A Verified Modern Cryptographic Library
引用它的顶会 Paper47
- SoK: Computer-Aided CryptographyManuel Barbosa, Gilles Barthe, Karthik Bhargavan, Bruno Blanchet 等S&P 2021 · 169 次引用
- EverCrypt: A Fast, Verified, Cross-Platform Cryptographic ProviderJonathan Protzenko, Bryan Parno, Aymeric Fromherz, Chris Hawblitzel 等S&P 2020 · 114 次引用
- RefinedC: automating the foundational verification of C code with refined ownership typesMichael Sammler, Rodolphe Lepigre, Robbert Krebbers, Kayvan Memarian 等PLDI 2021 · 83 次引用
- 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 次引用
- The Last Mile: High-Assurance and High-Speed Cryptographic ImplementationsJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Benjamin Grégoire 等S&P 2020 · 67 次引用
它引用的 Paper3
- HACL*: A Verified Modern Cryptographic LibraryJean Karim Zinzindohoué, Karthikeyan Bhargavan, Jonathan Protzenko, Benjamin BeurdoucheCCS 2017 · 258 次引用
- Jasmin: High-Assurance and High-Speed CryptographyJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Arthur Blot 等CCS 2017 · 157 次引用
- Vale: Verifying High-Performance Cryptographic Assembly CodeBarry Bond, Chris Hawblitzel, Manos Kapritsos, K. Rustan M. Leino 等USENIX Security 2017 · 147 次引用
相关 Paper
- Verified Cryptographic Code for EverybodyBrett Boston, Samuel Breese, Joey Dodds, Mike Dodds 等CAV 2021 · 7 次引用
- CryptOpt: Verified Compilation with Randomized Program Search for Cryptographic PrimitivesJoel Kuepper, Andres Erbsen, Jason Gross, Owen Conoly 等PLDI 2023 · 12 次引用
- HACLxN: Verified Generic SIMD Crypto (for all your favourite platforms)Marina Polubelova, Karthikeyan Bhargavan, Jonathan Protzenko, Benjamin Beurdouche 等CCS 2020 · 17 次引用
- Certified Verification of Algebraic Properties on Low-Level Mathematical Constructs in Cryptographic ProgramsMing-Hsien Tsai, Bow-Yaw Wang, Bo-Yin YangCCS 2017 · 19 次引用
- ARMOR: A Formally Verified Implementation of X.509 Certificate Chain ValidationJoyanta Debnath, Christa Jenkins, Yuteng Sun, Sze Yiu Chau 等S&P 2024 · 6 次引用
