Signed Cryptographic Program Verification with Typed CryptoLine
Yu-Fu Fu, Jiaxiang Liu, Xiaomu Shi, Ming-Hsien Tsai, Bow-Yaw Wang, Bo-Yin Yang
Abstract
We develop an automated formal technique to specify and verify signed computation in cryptographic programs. In addition to new instructions, we introduce a type system to detect type errors in programs. A type inference algorithm is also provided to deduce types and instruction variants in cryptographic programs. In order to verify signed cryptographic C programs, we develop a translator from the GCC intermediate representation to our language. Using our technique, we have verified 82 C functions in cryptography libraries including NaCl, wolfSSL, bitcoin, OpenSSL, and BoringSSL.
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.
8 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
- SoK: Computer-Aided Cryptography cites Vale: Verifying High-Performance Cryptographic Assembly Code
- SoK: Computer-Aided Cryptography cites Verified Correctness and Security of mbedTLS HMAC-DRBG
- 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 HACLxN: Verified Generic SIMD Crypto (for all your favourite platforms)
- 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
- HACLxN: Verified Generic SIMD Crypto (for all your favourite platforms) cites Vale: Verifying High-Performance Cryptographic Assembly Code
- HACLxN: Verified Generic SIMD Crypto (for all your favourite platforms) cites SoK: Computer-Aided Cryptography
- HACLxN: Verified Generic SIMD Crypto (for all your favourite platforms) cites Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
- HACLxN: Verified Generic SIMD Crypto (for all your favourite platforms) cites HACL: A Verified Modern Cryptographic Library
- HACLxN: Verified Generic SIMD Crypto (for all your favourite platforms) cites Jasmin: High-Assurance and High-Speed Cryptography
- Jasmin: High-Assurance and High-Speed Cryptography cites Vale: Verifying High-Performance Cryptographic Assembly Code
- Jasmin: High-Assurance and High-Speed Cryptography cites Verified Correctness and Security of mbedTLS HMAC-DRBG
- Jasmin: High-Assurance and High-Speed Cryptography cites HACL: A Verified Modern Cryptographic Library
- CryptOpt: Verified Compilation with Randomized Program Search for Cryptographic Primitives cites Simple High-Level Code for Cryptographic Arithmetic - With Proofs, Without Compromises
Cited by top-tier papers8
- SoK: Computer-Aided CryptographyManuel Barbosa, Gilles Barthe, Karthik Bhargavan, Bruno Blanchet et al.S&P 2021 · 169 citations
- High-Assurance Cryptography in the Spectre EraGilles Barthe, Sunjay Cauligi, Benjamin Grégoire, Adrien Koutsos et al.S&P 2021 · 42 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
- CryptOpt: Verified Compilation with Randomized Program Search for Cryptographic PrimitivesJoel Kuepper, Andres Erbsen, Jason Gross, Owen Conoly et al.PLDI 2023 · 12 citations
- ENG25519: Faster TLS 1.3 handshake using optimized X25519 and Ed25519Jipeng Zhang, Junhao Huang, Lirui Zhao, Donglong Chen et al.USENIX Security 2024 · 11 citations
Builds on6
- 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
- Verified Correctness and Security of mbedTLS HMAC-DRBGKatherine Q. Ye, Matthew Green, Naphat Sanguansin, Lennart Beringer et al.CCS 2017 · 59 citations
Related papers
- Verified Cryptographic Code for EverybodyBrett Boston, Samuel Breese, Joey Dodds, Mike Dodds et al.CAV 2021 · 7 citations
- Certified Verification for Algebraic AbstractionMing-Hsien Tsai, Yu-Fu Fu, Jiaxiang Liu, Xiaomu Shi et al.CAV 2023 · 1 citation
- Verifying Constant-Time ImplementationsJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, François Dupressoir et al.USENIX Security 2016 · 274 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
- Formal verification of a constant-time preserving C compilerGilles Barthe, Sandrine Blazy, Benjamin Grégoire, Rémi Hutin et al.POPL 2020 · 77 citations
