← Back to section · Software & Developer Tools

Cross-Implementation Interoperability Testing: Each Side Passes, Yet They Cannot Talk

Two PQC implementations that each pass their own test suites can still fail to interoperate. This article dissects the typical sources — encoding details, mismatched parameters and context strings, version drift — and explains matrix-style cross-testing and artifact exchange.

Published 22 November 2026 · 6 min read · PQ Frontier

Cross-Implementation Interoperability Testing: Each Side Passes, Yet They Cannot Talk
AI-generated site artwork
Video explainer · PQC testing: the gates an implementation must pass

Every cryptographic library has its own test suite, and a fully green run is not unusual. The truly awkward moment comes at integration time: a public key generated by library A cannot be parsed by library B, A’s signatures fail verification under B, yet both sides pass the standard vectors in their own suites. This “each correct, together broken” pattern is a classic problem in cryptographic engineering, and it is especially prominent in the post-quantum migration — the algorithms are new, the implementations are many, and the protocol assembly layer is still evolving. This article dissects the typical sources of interoperability failure and explains how to organize cross-testing so these problems surface in the laboratory rather than in production.

Failures Live in the Assembly Layer, Not the Algorithm

After a kernel has been checked repeatedly against KAT and standard vectors, pure mathematical errors are relatively rare. Interop failures more often occur in the assembly layer outside the kernel. The first class is encoding detail: the byte layout of public keys and ciphertexts, the endianness of integers, how length fields are written, the concatenation order of variable-length components — wherever the specification leaves room for interpretation, implementations may each go their own way. The second class is parameters and identifiers: whether both sides really are using the same parameter set, whether algorithm identifiers and object identifiers agree, and whether the combination negotiated in the protocol is understood identically at both ends — the concatenation order of classical and post-quantum components in hybrid key exchange is a typical crash site. The third class is context and labels: many constructions mix a context string into the hash input for domain separation, and if one end uses the protocol name while the other uses a version string, they compute completely different results while each looks “compliant” in isolation. The fourth class is version drift: the specification was revised during standardization, implementation A follows the final version and implementation B an earlier draft; each passes its own tests, and the discrepancy only shows when they meet.

These failures share a common trait: no party’s unit tests can find them, because each party’s tests are built on its own reading. Only when real artifacts flow across implementation boundaries does a divergence of understanding become an observable failure. That is exactly why interoperability testing is irreplaceable.

Matrix Cross-Testing: Everyone Is Everyone Else’s Peer

The basic shape of interop testing is the cross matrix: given N implementations, each one plays both initiator and responder against all the others, completing full key establishment and sign/verify flows. The matrix’s value lies in asymmetric exposure — if A generates and B fails to verify, while B generates and A verifies successfully, that directional information immediately narrows the problem to one side’s generation or parsing path; with only a single direction of testing, a generator’s bug is easily misdiagnosed as a verifier’s problem.

There are two common ways to organize execution. The first is the centralized interop event: multiple teams connect to shared test servers or exchange artifacts within the same time window, run the matrix against a common checklist, and compare notes on the spot — a format historically common during the rollout of major protocols and new algorithms, with high efficiency and fast feedback. The second is continuous automated exchange: each implementation publishes its standard artifacts (public keys, ciphertexts, signature samples with parameter documentation) to a shared repository, and other implementations’ continuous integration regularly pulls and verifies them, forming an unattended regression net. The former suits concentrated mine-clearing around specification finalization; the latter suits long-term maintenance, guarding against silent drift. In practice the two combine: fill the big holes with an event, then hold the line with automated exchange.

What to Test: From Raw Artifacts to Full Protocols

Interop testing comes in layers; the higher the layer, the closer to real deployment and the harder fault localization becomes, so the sensible approach is to advance layer by layer. The lowest layer is raw artifact exchange: one party generates a key pair and signatures from a fixed seed, and the others verify — this layer directly tests encoding and algorithmic understanding, differing from KAT in that the artifacts come from independent implementations rather than reference vectors. The middle layer is primitive-level protocol interop: exchanging ephemeral public keys and ciphertexts in a real key establishment flow and confirming both sides derive the same shared secret — this layer begins to involve state machines and message ordering. The top layer is full protocol interop: installing the post-quantum algorithms into a real protocol stack — running hybrid key exchange in a TLS handshake, issuing and verifying certificate chains with the new signature algorithm — testing negotiation logic, extension fields, failure fallback, and other system-level behavior. History offers cases where primitive-level interop was flawless and only at the protocol layer did it emerge that certificate chain sizes exceeded a buffer assumption hard-coded on one side. The point of layering is to catch problems at the lowest possible layer, where there are fewer variables and localization is fastest.

After a Failure: Write the Divergence Back into the Specification and Tests

The most valuable output of interop testing is often not “pass” but the attribution of failure cases. Every interop failure deserves one question: did an implementation get it wrong, or did the specification fail to say it clearly? If the latter — the specification text admits two reasonable readings — then the fix belongs not in anyone’s code but in the specification and the test vectors: make the divergence point explicit and add discriminating vectors for it, so later implementers do not step on the same stone. This is why interop events are often led by standards bodies or communities: they can feed divergences found on the floor directly into specification revisions and official vector updates, closing the loop. For an individual implementation team, the return on participating is equally concrete: deviations between their reading and the mainstream reading surface all at once during joint testing, far more cheaply than in a user report after deployment.

Summary

Interoperability testing verifies not the correctness of a single implementation but whether the whole ecosystem understands the specification the same way. Three points organize it: cover all implementation pairs in both directions with a cross matrix; advance in layers, from raw artifacts to full protocols; and attribute every failure, writing specification-level divergences back into the specification and its vectors. For teams in the middle of a post-quantum migration, one practical suggestion remains: when selecting components, prefer implementations and parameter combinations that have been through public interop validation, and keep at least one cross-check against an independent implementation in your own continuous integration — interoperability is not a property that, once tested, stays valid forever; it has to be continuously defended.

Tags: Interoperability TestingProtocol CompatibilityCross-Testing