← Back to section · Research Resources

Test Vectors and Interoperability Documents: The Official Paper That Proves an Implementation Right

Whether an algorithm is implemented correctly is settled by tests, not claims. Known-answer test files, the ACVP automated validation protocol documents, and public reports from interoperability events form the evidence layer for implementation correctness — who publishes each, how to use them, and what each can and cannot prove.

Published 22 November 2026 · 5 min read · PQ Frontier

Test Vectors and Interoperability Documents: The Official Paper That Proves an Implementation Right
AI-generated site artwork
Video explainer · Official Documentation: the detail beyond the standard

First kind: known-answer test files

Every serious algorithm specification needs an objective way to check answers. Known-answer tests (KATs) exist for exactly that: the authorities publish files in which each entry gives an input — keys, messages, randomness seeds — and the one correct output; implementers run their code, and only byte-for-byte agreement counts as a pass. For post-quantum algorithms, KAT files were published together with the submission packages and later became foundational material for the validation system.

Several points matter when reading these documents. First, a KAT proves consistency between an implementation and the specification; it says nothing about the security of the algorithm itself. Second, the file format and generation method are part of the documentation: how a seed expands into test inputs, whether intermediate values are included for debugging — these conventions decide how hard fault-finding will be. Third, version correspondence must be pinned down: KATs generated for one round’s submission package cannot validate an implementation of the final standard, since finishing changes to parameters and encodings are enough to void the entire answer set. A “failure” produced by the wrong version’s test files is the most wasteful false alarm in the business.

Second kind: the ACVP protocol and vector-set documents

Official validation of modules and algorithms now runs mostly on an automated track. ACVP (the Automated Cryptographic Validation Protocol) is a protocol-based service maintained by NIST: the implementation under test interacts with a server by protocol, fetches vector sets, returns results, and is judged server-side. Around this service exists a full body of public documentation: the specification of the protocol itself, per-algorithm vector-set descriptions, and operational guides for test sessions.

The readership for these documents is wider than submitters. Anyone who wants to understand what “validated” actually means — procurement staff, evaluators, authors of selection reports — should read the vector-set descriptions: they enumerate concretely which cases, which boundaries, and which error handling were tested. The value of validation lies not in the certificate but in the shape of the test coverage, and that shape is written down only at this layer. Conversely, looking at a certificate number without the vector-set documents means accepting a conclusion while waiving the evidence.

Third kind: interoperability event reports

Whether independent implementations can actually talk to each other is a different question, requiring a different document. IETF hackathons, ETSI interoperability testing events (of the Plugtests kind), and similar sessions run by standards bodies usually publish reports afterwards: which implementations attended, which combinations were tested, which combinations failed, and whose divergent reading of the specification caused it. These reports read like meeting records, with conclusions presented as statistics and cases.

Their value is exposing the specification’s ambiguous zones: wherever several implementations stumble at the same place in an interoperability event, the specification is usually not written tightly enough, and later errata and revisions frequently start there. For implementers, such a report is a map of other people’s pitfalls; for evaluators, it indicates which combinations a selection test should stress. But remember its evidential boundary: passing interoperability proves only that implementations are mutually compatible — it proves neither that any one of them conforms to the specification, nor that the algorithm is secure. Wrong implementations can interoperate perfectly well with each other.

The half that gets skipped: negative testing and error handling

Test documentation contains a category of content that is routinely skipped: negative tests. An implementation must not only produce correct outputs for correct inputs; for tampered inputs, malformed formats, and out-of-range parameters it must fail in the correct way — reject the decapsulation, report an error rather than crash, and never mistake an error state for success. Validation vector sets normally include such cases, and a substantial share of the failures recorded in interoperability reports are inconsistencies of exactly this kind: for the same malformed input, one implementation rejects it while another produces some output.

Post-quantum algorithms raise the stakes of this half of testing. How decapsulation failure is handled connects directly to a real attack surface: if failure behavior is observable from outside and can be probed repeatedly, an implementation may leak key material under sustained querying. When evaluating an implementation, look beyond its pass rate on positive tests to what share of its documentation and test records the negative cases occupy, and how finely the failure modes are specified. That information, too, exists only in the test documents; product marketing never provides it.

Using these documents in procurement and acceptance

Test documents are also among the few official materials that can enter contract language directly. The practical approach: acceptance clauses should not say vague things like “conforms to standard X,” but should specify self-testing against a named version of the KAT files, the algorithm and version a validation certificate covers, and the combination range an interoperability test exercised. Acceptance then has a reproducible decision procedure, and disputes have a paper trail. For a supplier, proactively providing the corresponding versions of these three document layers is itself a signal of engineering maturity. None of this requires deep cryptography — only basic respect for the document system: every claim of correctness should be traceable to a specific, retrievable test file.

Three document kinds, one evidence chain

Read together, the three kinds complete the evidence chain for implementation correctness: KATs prove an implementation matches the specification’s given answers; ACVP documents prove which cases the official validation covered; interoperability reports prove that different teams’ readings did not diverge in real interconnection. In implementation acceptance or product evaluation, each layer has its place, and whichever layer is missing is where the conclusion has a hole. The citation discipline matches that for other official documents: name the document version and the corresponding algorithm version, because a test conclusion holds only for the exact implementation version that was tested.

Tags: test vectorsACVPinteroperabilitydocument guide