DocumentCode
1579566
Title
Automatic Formal Verification of Block Cipher Implementations
Author
Smith, E.W. ; Dill, David L.
Author_Institution
Stanford Univ., Stanford, CA
fYear
2008
Firstpage
1
Lastpage
7
Abstract
This paper describes an automatic method for proving equivalence of implementations of block ciphers (and similar cryptographic algorithms). The method can compare two object code implementations or compare object code to a formal, mathematical specification. In either case it proves that the computations being compared are bit-for-bit equivalent. The method has two steps. First the computations are represented as large mathematical terms. Then the two terms are proved equivalent using a phased approach that includes domain-specific optimizations for block ciphers and relies on a careful choice of both word-level and bit-level simplifications. The verification also relies on STP [5], a SAT-based decision procedure for bit-vectors and arrays. The method has been applied to verify real, widely-used Java code from Sun Microsystems and the open source Bouncy Castle project. It has been applied to implementations of the block ciphers AES, DES, Triple DES (3DES), Blowfish, RC2, RC6, and Skipjack as well as applications of the cryptographic hash functions SHA-1 and MD5 on fixed-length messages.
Keywords
Java; formal verification; private key cryptography; public domain software; AES; Java code; SAT-based decision procedure; Sun Microsystems; automatic formal verification; bit-for-bit equivalent; block cipher; cryptographic algorithms; cryptographic hash functions; domain-specific optimizations; fixed-length messages; mathematical specification; open source Bouncy Castle project; Automation; Computer bugs; Cryptography; Formal specifications; Formal verification; Java; National security; Sun;
fLanguage
English
Publisher
ieee
Conference_Titel
Formal Methods in Computer-Aided Design, 2008. FMCAD '08
Conference_Location
Portland, OR
Print_ISBN
978-1-4244-2735-2
Electronic_ISBN
978-1-4244-2736-9
Type
conf
DOI
10.1109/FMCAD.2008.ECP.10
Filename
4689169
Link To Document