← Back to section · Research & Analysis
Comparing KEM Trust Bases: Lattices, Codes, and the Conservative Camp
Beyond ML-KEM, NIST has also selected the code-based HQC as a backup KEM, while Germany's BSI has long recommended FrodoKEM and Classic McEliece. Mainstream, backup, and conservative KEM routes coexist; the comparison turns not on performance but on which mathematical problems each route trusts, how their failures correlate, and the price of this diversity insurance.
The KEM standardization landscape is instructive: FIPS 203 contains exactly one algorithm, ML-KEM, yet NIST subsequently announced in IR 8545 the selection of the code-based HQC for standardization as ML-KEM’s backup, while Germany’s BSI has long recommended conservative options such as FrodoKEM and Classic McEliece in its technical guidance. The coexistence of three routes shows that the core of KEM route comparison was never whose performance numbers are better, but how trust should be diversified.
The trust structure of the three routes
ML-KEM’s trust root is Module-LWE: a learning problem with ring structure, extremely efficient, with public keys and ciphertexts both around a thousand bytes (the ML-KEM-768 public key is 1,184 bytes and its ciphertext 1,088 bytes), but whose algebraic structure means a larger analysis surface than for general lattice problems. The code-based route divides its labor internally: Classic McEliece trusts the decoding problem for binary Goppa codes, unbroken since 1978, at the price of public keys from roughly 260,000 to 1.3 million bytes; HQC trusts the hardness of decoding quasi-cyclic codes, with public keys of a few thousand bytes — middling in size but with a shorter history of security analysis. FrodoKEM deliberately strips away all algebraic structure and relies only on general LWE, the most conservative option, at the price of public keys and ciphertexts swelling to around ten thousand bytes. The three routes’ hard problems come from different sources, are studied by different research communities, and face different known attack techniques; their failure correlation is low — the precondition for the portfolio to make sense.
The SIKE lesson: why assumption independence matters
In 2022, SIKE, the leading candidate of the isogeny route, was completely broken by Castryck and Decru on an ordinary computer within hours, the mathematical structure it relied on proving to harbor a previously unrecognized weakness. The incident carries two lessons for route strategy. First, any single mathematical structure may contain structural weaknesses not yet discovered; years of study and community size reduce the probability but cannot eliminate it. Second, if the whole network’s traffic rests on one assumption, a single breakthrough becomes a systemic event. The value of a backup route therefore lies not in whether it is used in normal times, but in the existence of a standardized, implementation-ready switch target should the main assumption fail. HQC’s selection and BSI’s insistence on conservative algorithms are institutional expressions of this logic.
Trigger conditions for the backup route: when the insurance pays out
A complete backup-route strategy must also answer in advance when to switch, or the insurance remains mere inventory. Workable trigger conditions usually come in three grades. Grade one is an analysis warning: when a hard problem sees major progress short of a practical attack, start interoperability retesting and deployment drills for the backup route, compressing switch-over time from unknown to known. Grade two is a credible proof-of-concept attack: high-value systems switch first or enable dual-route hybrid operation, while ordinary systems enter a migration schedule. Grade three is a practical attack: force the switch per the plan and accept the interoperability cost. Each grade should carry a named decision owner and a time bound. NIST’s decision to write a full independent standard for HQC rather than simply endorse a candidate exists precisely so that the post-trigger switch target is a finished standard, not a half-built one. A dual-route posture without trigger conditions just pays the cost twice.
The price of diversity, and how to pay it
Maintaining a second KEM route is not free: protocol stacks need a second set of parameters and encodings, test vectors, interoperability testing, and side-channel audits must all be done twice, and hybrid deployment stacks another ciphertext onto the bandwidth. But the premium can be paid in different ways. For the great majority of systems, the reasonable portfolio is to reserve algorithm agility at the protocol layer, run only ML-KEM in production, and hold the backup route in a rapidly activatable state. For scenarios with confidentiality horizons measured in decades and very high renegotiation costs (such as long-term archive encryption and cross-border dedicated lines), deploying lattice-plus-code dual-route hybrid encapsulation directly trades bandwidth for a double layer of assumption insurance. The pitfall to avoid is turning diversity into stacking: enabling three or four routes at once does not raise security linearly; it linearly enlarges the surface for implementation and audit errors.
What the size spectrum means for deployment
The size differences among the three routes are not abstract numbers; they directly determine each route’s deployable domain. A Classic McEliece public key is nearly unworkable inside a TLS certificate chain, but in closed systems where keys can be pre-distributed before connections are established (such as dedicated-line devices with pre-provisioned keys, or offline media exchange), a large public key is a one-time cost, repaid with an unbroken record of over forty years and tiny ciphertexts. HQC’s public keys and ciphertexts in the few-thousand-byte range make it the only code-based route whose size comes close to what mainstream protocols can carry — an important reason it was chosen as the general backup rather than a niche conservative option. FrodoKEM’s ten-thousand-byte-class parameters compress its applicability to low-frequency, high-value connections. In short, the criteria for selecting a backup route are always double: assumption independence decides whether it qualifies as insurance, and the size spectrum decides whether that insurance can actually be activated in an emergency — insurance that cannot be deployed is no insurance at all.
It should also be noted that performance gaps between routes are not static: lattice implementations are still being optimized rapidly, and decoding implementations on the code-based side keep improving. Today’s size table can delineate deployment domains; it cannot serve as a final verdict on long-term merit.
Conclusion
The right answer to the KEM route contest is a layered portfolio: ML-KEM carries the efficiency and ecosystem of general deployment, the code-based route carries the insurance function of assumption hedging, and the unstructured conservative route preserves an option for extreme long-confidentiality needs. When evaluating a backup route, ask first whether its failure correlates with the main route’s, and only then what the premium costs — the order must not be reversed.
Tags: ML-KEMHQCClassic McElieceFrodoKEM