← Back to section · Research Resources
ACVP Test Vector Sets: The Data Behind CMVP Validation
Beyond submission-package KATs there is a second body of test data: NIST's ACVP protocol drives laboratory testing with JSON vector sets. This guide explains what they contain, how they differ from KATs, where public samples live, and the version checks to run before using them.
Two bodies of vectors, two jobs
When people talk about test data for post-quantum algorithms, they usually mean the KAT (Known Answer Test) files published with each NIST submission package. But when a product actually heads for the compliance market, a different body of data decides the outcome: the vector sets of ACVP, the Automated Cryptographic Validation Protocol. ACVP is the automated testing channel NIST built for the CMVP (Cryptographic Module Validation Program): the module under test fetches vectors over the protocol, returns results, and the server grades them. It is the actual input to the algorithm-testing stage of the FIPS 140-3 validation process. This site’s code index has mentioned ACVP from the tooling side; this article is about the data itself — who maintains it, what it looks like, how it divides the work with KATs, and what researchers and engineers should verify before relying on it.
Who maintains it, and what it contains
ACVP is maintained by NIST’s CMVP team. The protocol specification and the per-algorithm vector specifications are published openly in NIST’s GitHub repository (usnistgov/ACVP) for anyone to read. Operationally there are two servers: a demo server where vendors and laboratories can rehearse before formal submission, and a production server open only to registered validation laboratories and the formal process.
The basic unit of data is the vector set: a JSON document corresponding to one algorithm and one test type. Inside, test groups divide the parameter combinations, and each group holds individual test cases giving inputs (such as the random seed for encapsulation, or the message to be signed) together with expected outputs. For the three finalized post-quantum standards — ML-KEM, ML-DSA and SLH-DSA — ACVP defines vector specifications covering key generation, encapsulation and decapsulation, signing and verification. Alongside functional correctness cases there are deliberately malformed inputs, testing whether an implementation rejects invalid ciphertexts and signatures the way the standard requires.
Academic researchers have one more practical access route: the demo server is open for registration, and anyone can create test sessions there and generate small vector sets, under the public specifications, for the algorithm and parameter combinations they care about — for teaching, implementation debugging and methods research. Its vectors come from the same source and format as production, differing only in scale and purpose: they cannot be used for formal validation, but as research material they are fully legitimate, and the ACVP vector examples appearing in open courses and implementation tutorials come from exactly this route. Note that the demo server periodically purges sessions and data, so generated research material should be exported promptly and archived together with the specification revision — otherwise, after a while, only the results remain and the corresponding inputs are gone.
How the work divides with KATs
The two bodies of data are easily confused, but their roles are entirely different. KATs ship with algorithm submission packages as simple request/response text file pairs, with randomness derived from fixed seeds; their purpose is to let anyone holding the submission package check byte-for-byte that an implementation matches the submitter’s reference implementation — an out-of-the-box self-check that the implementation is right. ACVP vectors serve the administrative process of whether a module can earn a FIPS 140-3 certificate: vectors are generated dynamically by the server under the specification, testing happens over a controlled protocol, and results enter the CMVP validation record. In short, KATs are the algorithm ecosystem’s public self-check data; ACVP is the validation system’s official exam. Both can be used when studying implementation correctness, but any conclusion you cite must state which set, and which version, it rests on.
What to check before using them
First, check the specification revision. Every ACVP algorithm specification carries its own revision, and vector formats and case composition change between revisions. Around the finalization of FIPS 203, draft ACVP vectors for ML-KEM differed from the final conventions (the handling of internal randomness was adjusted, for example), so testing a module built to the final standard against draft vectors produces baffling failures. Second, check test-type and parameter coverage: a vector set covers only the parameter sets and modes the specification lists, and a combination missing from the vector set is not thereby non-compliant — validation simply does not test it. Third, understand the relationship between public samples and production vectors: the GitHub repository ships a small number of sample vector sets for development and debugging, far smaller in volume and coverage than what the server actually issues, so passing every sample does not mean passing the real test. Fourth, mind the access boundary: the protocol specifications and sample data are publicly readable, but the production server’s full vectors are not publicly downloadable. When a paper or report claims to have “passed ACVP testing,” check whether that means a self-test against the demo server or a formal laboratory validation record — the two carry very different weight.
From CAVP to ACVP: where this data came from
ACVP did not appear from nowhere. Its predecessor, CAVP (the Cryptographic Algorithm Validation Program), ran for years under a manual regime: laboratories requested vectors from NIST, received test data through file exchanges, and compared results by hand, on cycles measured in months; as algorithm counts grew, this became one of the bottlenecks in the whole CMVP certificate queue. ACVP’s reform was to make the entire stage protocol-driven: vectors are generated by the server under the specification, delivered through structured interfaces, and graded automatically, freeing laboratory effort from passing files and checking answers. For dataset users, the significance is that ACVP-era vectors have a uniform machine-readable format and a public specification, while the private vector sets scattered across laboratories in the CAVP era are essentially invisible and unreusable. The official vectors that implementation-validation research can cite systematically today only exist at scale because of ACVP’s public specifications. A side effect is coverage speed: once a new algorithm is finalized (the three post-quantum standards, for instance), drafting its vector specification becomes the prerequisite step for entering the CMVP validation channel, so watching how mature an algorithm’s specification is in the ACVP repository gives a rough reading of how far that algorithm is from being testable for certification — intelligence value this dataset carries beyond testing itself.
References
- NIST ACVP specification repository (protocol and per-algorithm vector specifications, sample vector sets) — https://github.com/usnistgov/ACVP
- NIST ACVP demo server portal — https://demo.acvp.nist.gov
- CMVP (Cryptographic Module Validation Program) home — https://csrc.nist.gov/projects/cryptographic-module-validation-program
Tags: ACVPCMVPtest vectorsFIPS 140-3