Verifying RustCrypto's Fixsliced AES-128 in ACL2: An Aeneas Backend and an Executable MIR Semantics
Aeneas translates safe Rust programs into pure functional code by symbolically resolving borrows, with existing backends for F*, Rocq, HOL4, and Lean. We present an ACL2 backend for Aeneas, together with supporting changes to Aeneas and to its Rust front end Charon, and use it to verify a real-world cryptographic implementation: the RustCrypto project's 32-bit fixsliced AES-128, extracted essentially verbatim from the upstream crate. We prove that the extracted encryption and decryption functions, key schedule included, equal the existing ACL2 AES-128 specification for all keys and blocks, with every bounds check and assertion proven to pass. The proofs combine GL bit-blasting for bit-level facts about the bitsliced S-box and state packing with structured rewriting for the round ladders' mask and frame algebra, over fueled recursive models of the upstream loops. To reduce the trust placed in the unverified Rust-to-ACL2 translation chain, we also present an executable MIR semantics in ACL2 covering every operation the crate uses, with a loader for the compiled crate's MIR: the interpreter runs the same AES inside ACL2, reproduces the FIPS-197 vectors, and agrees with the same…
- arXiv
- 2612.05755
- Authors
- Eric McCarthy
- Categories
- cs.LO · cs.PL