Vale: Verifying High-Performance Cryptographic Assembly Code
Barry Bond, Chris Hawblitzel, Manos Kapritsos et al. · USENIX Security Symposium · 2017
High-performance cryptographic code often relies on complex hand-tuned assembly language that is customized for individual hardware platforms. Such code is difficult to understand or analyze. We introduce a new programming language and tool called Vale that supports flexible, automated verification of high-performance assembly code. The Vale tool transforms annotated assembly language into an abstract syntax tree (AST), while also generating proofs about the AST that are verified via an SMT solver. Since the AST is a first-class proof term, it can be further analyzed and manipulated by proven-correct code before being extracted into standard assembly. For example, we have developed a novel, proven-correct taint-analysis engine that verifies the code’s freedom from digital side channels. Using these tools, we verify the correctness, safety, and security of implementations of SHA-256 on x86 and ARM, Poly1305 on x64, and hardware-accelerated AES-CBC on x86. Several implementations meet or beat the performance of unverified, state-of-the-art cryptographic libraries.
Cited by 73 works.
Authors
- Barry Bond
- Chris Hawblitzel
- Manos Kapritsos
- K. Rustan M. Leino
- Jacob R. Lorch
- Bryan Jeffery Parno
- Ashay Rane
- Srinath Setty
- Laure Thompson
References
- Differential Power Analysis
- Timing Attacks on Implementations of Diffie-Hellman, RSA, DSS, and Other Systems
- Z3: An Efficient SMT Solver
- A unified approach to global program optimization
- Security Policies and Security Models
- Certification of programs for secure information flow
- Electromagnetic Analysis: Concrete Results
- Remote timing attacks are practical
- Understanding data lifetime via whole system simulation
- Controlled-Channel Attacks: Deterministic Side Channels for Untrusted Operating Systems