Certified Verification of Algebraic Properties on Low-Level Mathematical Constructs in Cryptographic Programs
Ming-Hsien Tsai, Bow-Yaw Wang, Bo-Yin Yang
Abstract
Mathematical constructs are necessary for computation on the underlying algebraic structures of cryptosystems. They are often written in assembly language and optimized manually for efficiency. We develop a certified technique to verify low-level mathematical constructs in X25519, the default elliptic curve Diffie-Hellman key exchange protocol used in OpenSSH. Our technique translates an algebraic specification of mathematical constructs into an algebraic problem. The algebraic problem in turn is solved by the computer algebra system Singular. The proof assistant Coq certifies the translation and solution to algebraic problems. Specifications about output ranges and potential program overflows are translated to SMT problems and verified by SMT solvers. We report our case studies on verifying arithmetic computation over a large finite field and the Montgomery Ladderstep, a crucial loop in X25519.
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.
10 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
- Verus: A Practical Foundation for Systems Verification cites Vale: Verifying High-Performance Cryptographic Assembly Code
- Verus: A Practical Foundation for Systems Verification cites EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider
- 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 The Last Mile: High-Assurance and High-Speed Cryptographic Implementations
- The Last Mile: High-Assurance and High-Speed Cryptographic Implementations cites Vale: Verifying High-Performance Cryptographic Assembly Code
- Signed Cryptographic Program Verification with Typed CryptoLine cites Vale: Verifying High-Performance Cryptographic Assembly Code
- CryptOpt: Verified Compilation with Randomized Program Search for Cryptographic Primitives cites EverCrypt: A Fast, Verified, Cross-Platform Cryptographic Provider
- CryptOpt: Verified Compilation with Randomized Program Search for Cryptographic Primitives cites Signed Cryptographic Program Verification with Typed CryptoLine
Cited by top-tier papers10
- EverCrypt: A Fast, Verified, Cross-Platform Cryptographic ProviderJonathan Protzenko, Bryan Parno, Aymeric Fromherz, Chris Hawblitzel et al.S&P 2020 · 114 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
- Verus: A Practical Foundation for Systems VerificationAndrea Lattuada, Travis Hance, Jay Bosamiya, Matthias Brun et al.SOSP 2024 · 22 citations
- Signed Cryptographic Program Verification with Typed CryptoLineYu-Fu Fu, Jiaxiang Liu, Xiaomu Shi, Ming-Hsien Tsai et al.CCS 2019 · 19 citations
- CryptOpt: Verified Compilation with Randomized Program Search for Cryptographic PrimitivesJoel Kuepper, Andres Erbsen, Jason Gross, Owen Conoly et al.PLDI 2023 · 12 citations
Builds on1
Related papers
- Certified Verification for Algebraic AbstractionMing-Hsien Tsai, Yu-Fu Fu, Jiaxiang Liu, Xiaomu Shi et al.CAV 2023 · 1 citation
- 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
- Jazzline: Composable CryptoLine Functional Correctness Proofs for Jasmin ProgramsJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Lionel Blatter et al.CCS 2025
- Verified Cryptographic Code for EverybodyBrett Boston, Samuel Breese, Joey Dodds, Mike Dodds et al.CAV 2021 · 7 citations
- May the Fourth Be With You: A Microarchitectural Side Channel Attack on Several Real-World Applications of Curve25519Daniel Genkin, Luke Valenta, Yuval YaromCCS 2017 · 75 citations
