An AI Approach to Verified Production Cryptographic Libraries

Chuyue Sun, Su Fong, Zhiyi Kuang, Yizheng Jiao, Nina Narodytska +3 more
8/2/2026
cs.CRcs.AI

No confident code implementation found for this paper.

Abstract

Cryptographic code is critical infrastructure that must be correct, yet formally verifying production libraries remains difficult. Existing language-model proof systems solve isolated obligations with specifications and premises already given, leaving production-library verification unresolved.

Show full abstract

We present CryptoProver, an AI-based system that synthesizes internal specifications and Verus-checked proofs from high-level API contracts. Without changing executable code, CryptoProver constructs a new independent proof of curve25519-dalek and verifies RustCrypto's previously unverified chacha20 implementation against an RFC 8439 specification. These cryptographic lineages underpin deployed systems including Signal and Shadowsocks; Signal has an estimated 218M global downloads. The original developers report a focused five-month, three-person effort to verify curve25519-dalek. Given the API contracts and a fixed trusted library of field specifications, arithmetic facts, axioms, and vstd, CryptoProver synthesizes the internal specifications and proofs in 11.4 hours with USD 466.99 in recorded API cost. CryptoProver follows a trust-first design principle: mechanical gates reject specification weakening, invented axioms, and cross-module breakage, while isolation blocks reference proof retrieval, including from git history.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sun2026approach,
  title  = {An AI Approach to Verified Production Cryptographic Libraries},
  author = {Chuyue Sun and Su Fong and Zhiyi Kuang and Yizheng Jiao and Nina Narodytska and Haoze Wu and David L. Dill and Clark Barrett},
  year   = {2026},
  eprint = {2608.00965},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.00965v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.00965.svg)](https://codeofpaper.com/paper/2608.00965)

Discussion