← Back to section · Post-Quantum Migration
Protocol Field and Extension Compatibility: Fitting New Algorithms into Old Slots
New algorithms must live in protocol fields designed for classical ones: TLS extensions, X.509 algorithm identifiers, IKEv2 payloads, fixed-length structures. Checking field limits and negotiation semantics protocol by protocol is the driest — and least skippable — pre-deployment step.
Protocols are houses built for the old algorithms
When protocol designers reserved their fields, they had RSA and elliptic-curve sizes in mind: signatures of a few dozen to a few hundred bytes, public keys of a few dozen bytes. Post-quantum material is an order of magnitude larger, and moving it into those old slots means measuring every room. Field compatibility testing targets not the algorithms but every structure that carries them: extension fields in protocol messages, encoding structures of certificates and tokens, fixed-width columns in logs and databases, command buffers in hardware interfaces. Anywhere a limit was hard-coded to the old sizes will surface at swap time as truncation, overflow or parse failure.
Protocol-by-protocol checks: four hot spots
TLS: key exchange runs through the supported_groups and key_share extensions, and hybrid groups (such as X25519 combined with ML-KEM-768) have formally assigned code points; signatures run through signature_algorithms and the algorithm identifiers in certificates. Check whether the implementation knows the new group code points, how it handles a key_share longer than a single record fragment, and what negotiation produces when the peer offers no new group.
X.509 certificates: algorithms are identified by OIDs, and the OIDs for ML-KEM and ML-DSA are assigned in the relevant standards. Check issuing and parsing libraries for new-OID support, length handling in the subjectPublicKeyInfo field, and how path validation treats unknown algorithms — per specification it must fail explicitly, not skip.
IKEv2/IPsec: the key-exchange payload and the intermediate exchange mechanism (RFC 9242) were prepared for large payloads, and the multiple key exchange framework (RFC 9370) supports additional PQC exchanges. Check gateway implementations for support of these newer mechanisms; older implementations often have neither.
Application-layer structures: token formats such as JWT need new registered values for the alg header; and fixed-width database columns storing public keys, fingerprints or signatures (a CHAR(64), say) are the most hidden category — they appear in no protocol document, only in your own schema.
Identifier registration: code points and OIDs go first
A new algorithm can enter a negotiation system only if its identifier is formally assigned and implemented at both ends. The deployer’s checks: does the library version in use contain the target identifiers (hybrid TLS groups, signature algorithm OIDs, SSH algorithm names such as mlkem768x25519-sha256)? When identifiers are typed into configuration files by hand, do they match the specification character for character — SSH and TLS algorithm names are case-sensitive strings, and one wrong character makes negotiation silently miss. Also confirm the “placeholder” problem: some implementations used private code points during the transition that differ from the formally assigned values, and mixing the two device batches makes negotiation never line up.
How to audit field limits
Field limits cannot be checked by reading documents and guessing; the audit needs executable methods. First, work backwards from byte counts: tabulate the target algorithms’ material sizes (public key, ciphertext and signature byte counts are fixed values in the FIPS documents), then ask the same question of every system — what is the limit at each hop on this path, and where is it written? The answers are typically scattered across protocol configuration, gateway parameters, database schemas and code constants; pin each one down to a concrete number and source. Second, probe empirically with boundary values: construct test messages of progressively larger sizes (padding can simulate a large certificate chain) and send them through the pre-production environment, recording where failure begins — measured limits routinely disagree with documented ones, and the measurement wins. Third, check log and monitoring fields: security audit systems often truncate stored certificates and fingerprints at fixed lengths; such limits do not affect connections but leave post-incident audits with incomplete evidence, making them the easiest class to miss. The audit lands as a checklist: one row per limit point with current value, required value and the party responsible for changing it — the mirror image of the size article’s byte ledger: one tracks “how much is needed”, the other “where it does not fit”.
SSH and other text-list protocols: algorithm name lists
Beyond TLS and certificate systems, another protocol family negotiates algorithms by string lists; SSH is the archetype: key exchange, host key, cipher and MAC algorithms each have a name list, and the peers intersect them. Post-quantum algorithms enter SSH through new names (combined names for hybrid key exchange). Check that both endpoints’ versions have the names built in, and that hand-written algorithm lists in configuration place the new names correctly — SSH negotiation takes the first intersection in the client’s preference order, so a name at the end of the list behaves like no name at all. Watch one more detail: some management tools periodically push a uniform algorithm-policy template, and an un-updated template wipes the new names on every push, presenting as “it configured itself back”. The same problem exists in other list-based legacy protocols (certain database replication protocols and SASL mechanisms in messaging middleware), and the audit method is identical: confirm the name exists in the implementation, confirm it exists in the effective configuration, then verify the intersection with a real negotiation.
Negotiation semantics: what happens when the peer says no
Once the fields fit, test negotiation’s failure paths, because gradual rollout guarantees a mix of old and new. Every pairing must answer three questions:
- When the client offers only classical algorithms and the server has enabled only post-quantum, how does the connection end — a clean error, or a timeout?
- When both sides support the hybrid group, is the negotiated result actually the target group, rather than quietly downgraded to classical by some intermediate configuration?
- When a chain mixes classical and post-quantum certificates, does path validation judge as expected?
Turn negotiation outcomes into assertions in automated tests: log the actually negotiated group for every connection and compare against expectation. Negotiation semantics is the “softest” layer of compatibility — there is no error code to look up; only active assertion catches it, which is exactly why it is the layer most often missed. Fields fit, identifiers match, negotiation behaves as expected: only when all three are tested is protocol-layer compatibility closed.
Tags: Protocol CompatibilityTLS ExtensionsAlgorithm IdentifiersNegotiation