Wycheproof explained in plain terms means understanding the test suite that catches cryptographic bugs by throwing known attacks at a library, a Google project that turned decades of academic cryptanalysis into unit tests any developer can run. The central question is why a library needs attack tests when its code already passes its own tests, and the answer is that a library can implement an algorithm exactly as written and still be broken, so Wycheproof checks for the mistakes the specification never warns about.
Project Wycheproof is a collection of tests for cryptographic software libraries, announced by Google security engineers Daniel Bleichenbacher and Thai Duong in December 2016. It is named after Mount Wycheproof in Australia, the smallest mountain in the world, which means the name is a joke about modest goals, and because the goals are modest, the project does exactly one thing: it finds the obvious mistakes.
This article sets out five facts about Wycheproof, what it is, how it works, and where it runs in the real world.
Key takeaways
- Wycheproof tests crypto libraries against known attacks.
- Google announced it in December 2016.
- It started with over 80 test cases.
- Those tests uncovered more than 40 bugs.
- Passing the tests never proves a library secure.
What Wycheproof is
Wycheproof is a test suite that turns known attacks into test cases, and that attack-first approach is what makes it unusual among test tools. Each test feeds a library an input designed to break it, which means a library that handles the input wrongly is caught red-handed, and because the inputs come from real published attacks, a failure is never a theoretical worry.
Its signature feature is the focus on implementation mistakes. Most crypto testing checks that correct inputs give correct outputs, but Wycheproof checks that hostile inputs do not leak secrets, which means it hunts for invalid curve attacks, biased nonces and missing checks, and because those are the bugs that actually hurt people, the suite earns its keep by finding them.
The project was a reaction to repeated library failures. Open-source crypto libraries kept making the same subtle mistakes, so Bleichenbacher and Duong asked whether the attacks cryptographers already knew could be packaged as tests, because a bug that is found once should never need finding again, and that practicality is what made Wycheproof worth building.
It became one of the best-known crypto testing tools in the world, and it is named in every discussion of the field. The first release covered RSA, elliptic curve cryptography, Diffie-Hellman and authenticated encryption, the early runs found more than 40 bugs including private key recovery in DSA and ECDH implementations, and it is still the first example engineers meet when they learn that crypto code needs hostile testing, which means the project survives as a standard even though it is a decade old.
Our guide to AES encryption explains the cipher Wycheproof’s authenticated encryption tests cover, and our guide to digital signatures explains the signatures its nonce tests protect.
How Wycheproof works
Everything starts with the test vectors, which set the hostile inputs. Wycheproof ships JSON files full of keys, messages and signatures, each labelled with the result a correct library should give, which means a test runner only has to feed them in and compare, and because the vectors are language-neutral, the same tests can check a Java library, a C library or a Go library.
Each step begins with an attack case, which encodes one known weakness. A test case might hand a library a point that is not on its curve, or a signature with a biased nonce, which means the library must reject or handle the input safely, and because the case is built from a published attack, a library that fails it is vulnerable to that attack in the wild.
The invalid curve test is what makes the design work as a whole. Wycheproof feeds elliptic curve code points on the wrong curve, which means a library that skips validation will happily compute with them, and because the wrong-curve computation leaks the private key, the test catches a catastrophic bug with a single input.
The nonce test spreads the effect further. Wycheproof checks digital signatures for biased or repeated nonces, which means a signing implementation that reuses randomness is exposed, and because a leaked nonce can reveal the whole private key, the test guards the most valuable secret a library holds.
The edge case tests are what turn the suite into a thorough audit. Wycheproof probes empty inputs, oversized inputs and boundary values, which means a library that crashes or misbehaves at the edges is found out, and because attackers love edges, those tests matter as much as the headline attacks.
The result comes from the test run, read out as a pass or a fail per case. Wycheproof never claims a passing library is secure, which means the result is a floor rather than a ceiling, and that honesty is exactly what a testing tool should offer.

Comparing Wycheproof with other crypto testing
Wycheproof is one of several ways to check cryptographic code, and each was built with a different emphasis. Fuzzing is the random-input method built to find crashes, formal verification is the proof method built to guarantee correctness, and Wycheproof is the one built to replay known attacks, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | Wycheproof | Fuzzing | Formal verification |
|---|---|---|---|
| Method | Known attack cases | Random inputs | Mathematical proof |
| Finds new bugs | Rarely | Often | Never, proves absence |
| Effort | Run the suite | Run for hours | Months of work |
| Coverage | Known attacks only | Whatever it hits | Whole algorithm |
| Best for | Regression testing | Exploration | High assurance |
The practical result is that Wycheproof is the right choice for regression testing, fuzzing suits exploration, and formal verification fits high assurance instead.
Where Wycheproof is used
Library authors use it before every release. Bouncy Castle, OpenJDK and other providers run Wycheproof as part of their test suites, because a release that fails a known attack case should never ship, and that gate is the reason Wycheproof earns its keep in real development.
Language ports use it through the test vectors. The JSON vectors were made so the tests could leave Java behind, because a Rust or Go library needs the same hostile inputs, and that portability is the reason the design was built for real libraries.
Security teams use it to vet dependencies. A team choosing a crypto library can run Wycheproof against each candidate, because a library that fails basic attack tests is not worth adopting, and that comparison is the reason Wycheproof appears in procurement far beyond its testing origins.
Benchmarking uses it as the crypto hygiene reference. Engineers still quote Wycheproof when they discuss how a library should be tested, because it is the clearest example of turning research into routine checks, and that number shapes how new libraries are measured.
Teaching uses it as the implementation bug example. Courses introduce Wycheproof when they explain that correct maths does not mean correct code, because it is the clearest case of a right algorithm with a wrong implementation, and a student who understands Wycheproof understands why crypto is hard to get right.
Strengths and limits
The greatest strength of Wycheproof is that it is concrete. A test that replays a real attack leaves no room for argument about whether the bug matters, and that strength is real, measured in the forty-plus bugs it found and confirmed by the libraries that now run it.
It is also a strength that the tests are portable. A JSON vector works in any language, and that portability is worth more than cleverness in a field where a test suite tied to one language helps only one community.
The limits are real, though, and the biggest is that passing proves nothing. The authors themselves warn that passing only means the library is not vulnerable to the attacks Wycheproof tests for, which means a passing library can still be broken in a new way, and a system that treats a green run as a security proof is fooling itself.
Wycheproof checklist
- Use Wycheproof for regression testing, never as proof of security.
- Remember Google announced it in December 2016.
- Note it started with over 80 attack cases.
- Compare it with fuzzing to see two kinds of testing.
- Study the invalid curve tests, which are what catch key leaks.
- Check the nonce tests, since biased nonces leak private keys.
- Keep fuzzing beside it, since new bugs need new hunting.
- Read the Wycheproof README to see how the tests were set.
- Choose Wycheproof when a library must face known attacks.
Frequently asked questions
What is Wycheproof in simple terms?
It is a set of tests that throws known cryptographic attacks at a library to see whether it handles them safely.
Who created Wycheproof?
Google security engineers Daniel Bleichenbacher and Thai Duong, who announced it on the Google Security Blog in December 2016.
How is Wycheproof different from fuzzing?
Both test code, but Wycheproof replays known attacks while fuzzing throws random inputs hoping to stumble on new bugs.
Is Wycheproof still secure?
It is actively maintained on GitHub, but passing its tests only means a library resists the attacks it covers, not that it is secure.
Where is Wycheproof used?
In crypto library test suites, in language ports, in dependency vetting, and in teaching about implementation bugs.
When should I use Wycheproof?
When you ship a crypto library, when you choose one, or when you study how implementations go wrong.
The bottom line
Wycheproof explained in one line is this: a small mountain of tests, a 2016 suite that turned published attacks into unit tests and taught the field that a crypto library should be judged by the attacks it survives.
It is proof that known bugs deserve known tests, and the reason it still matters is that every crypto library tested since has been judged partly by the lesson Wycheproof taught.
This article is general information about how Wycheproof works, not advice about choosing encryption for a particular device or system.







