A new open-source cryptography library called Verified Garbage was written almost entirely by language models, and its authors say every algorithm in it comes with a mathematical proof of correctness. The catch sits in what those proofs rest on. The project’s own announcement, published on 28 November 2026 on the Verified Garbage blog, says the foundation was also drafted by models and then read by humans.

The design is unusual. Rather than use a language like Rust or C, the team writes assembly (the lowest-level code a processor reads) for each algorithm and each chip family. They then prove, using the Lean proof assistant, that this assembly does what a written specification says. The approach follows AWS’s s2n-bignum library, which the post credits as inspiration. The models do the heavy lifting: they write the fast code, and the proof checker accepts or rejects it.

The library covers x86, x86-64, ARMv7, ARM64, PPC64le, and RISCV64. It claims to include every algorithm used by pyca/cryptography, the widely used Python library, from AES-GCM and X25519 to ML-KEM and RSA. It ships as a Rust package, along with a provider that plugs into rustls, a Rust implementation of TLS.

What is proven, according to the post, is narrow and specific. For each algorithm on each chip, the assembly is shown to match the written specification of that algorithm, and to run in constant time. The authors define constant time as follows: the sequence of instructions never depends on secret inputs, and no instruction touching secret data takes a variable amount of time. That property matters because timing differences can leak keys.

What is not proven is the specification itself. The authors write that the library’s correctness depends on the specifications for the algorithms and for the chips’ instruction sets. Those specifications form the part of the system that must be trusted without proof. Models wrote them, and humans reviewed them. A subtle error there would be faithfully reproduced by flawless proofs. The post does not report any independent audit of those specifications.

The warnings are plain. The authors, who say they maintain widely used cryptographic libraries, describe Verified Garbage as new and as “an experiment” that “will benefit from time and feedback.” They expect skepticism toward a crypto library built with heavy model involvement. In the FAQ, they say they have no present plan to replace OpenSSL inside pyca/cryptography, though the question is on their minds. They add that a switch would take technical and social groundwork first.

The performance claims deserve the same care. The post presents charts comparing throughput against OpenSSL 4.1.0, and against AWS-LC 5.12.0 for the rustls tests, on an AMD Ryzen 9 9950X and an Apple M1 Max. The numbers are the authors’ own, and the text says the most tuning went into x86-64 and ARM64 with modern extensions. Results on other chips and older hardware may look different, and no outside party has reproduced them in the post.

The broader point is the division of labor. Models are good at generating many candidate optimizations, and a proof checker is a cheap, tireless judge of each one. That pairing works only when the judge is told the right question. Here the question, the spec, is the one piece that still depends on human reading, which is why the authors say they want to replace model-written specs with community-maintained, human-written ones.

For anyone weighing this for production, the authors’ own caveats settle it for now: treat Verified Garbage as something to test and read, not to deploy for real secrets, until the specifications have been reviewed by people outside the project.

Reported by the Verified Garbage project blog on 28 November 2026.