Cryptographic Algorithms

FrodoKEM: The Conservative Rock in the Storm

FrodoKEM gives up algebraic structure, trading efficiency for confidence.

Marvin Sprey

Marvin Sprey

ML-DSA-65NIST FIPS 204
Verify →

doc: iz400ba2804qfno9vr5thrqt

sig: 544b3eb7…121b2230

Introduction

Post-quantum cryptography is under enormous pressure to be efficient. Keys have to be small, computations fast, protocols lean. Algorithms that couldn't meet these requirements had little chance in NIST's standardization process, which is how ML-KEM (Kyber) became the primary standard for quantum-safe key encapsulation: compact, fast and elegant.

But one algorithm deliberately pushes back against this pressure, and it does so on principle. FrodoKEM answers a question that's easy to lose sight of amid all the enthusiasm for structured lattice schemes: what if we're wrong?

What if the algebraic structure that makes ML-KEM so efficient turns out to be its weakness one day? What if a cryptanalytic breakthrough undermines the security assumptions behind Ring-LWE or Module-LWE, the way Shor's algorithm undermined RSA and ECC?

FrodoKEM's answer is clear. It gives up algebraic structure entirely and accepts larger keys and slower computations in return. What it gets for that is a level of confidence grounded in one of the most thoroughly studied problems in lattice cryptography. That isn't a compromise, it's a design philosophy.

Lewis Glabush et al.

Several government agencies have expressed a desire for more conservative options with less underlying algebraic structure. FrodoKEM has been recommended as a conservative alternative by the German BSI, the French ANSSI, and the Dutch NLNCSA and AIVD.

The Foundation: Plain LWE Instead of Ring-LWE

To understand why FrodoKEM is so conservative, it helps to look at where ML-KEM gets its efficiency from, and what FrodoKEM deliberately does differently.

ML-KEM is based on Module-LWE, a structured variant of the Learning with Errors problem. It works with polynomials in the quotient ring Zq[x]/(xn+1)\mathbb{Z}_q[x]/(x^n + 1). This ring structure lets matrix multiplications be replaced by fast polynomial multiplications, accelerated by the Number-Theoretic Transform (NTT). The result is very small keys and very fast operations.

FrodoKEM, by contrast, is based on plain LWE, the original, unstructured Learning with Errors problem that Oded Regev introduced in 2005. There's no ring, no polynomials and no algebraic shortcuts. FrodoKEM works with genuinely random matrices over Zq\mathbb{Z}_q.

The LWE problem can be described like this: given a random matrix A∈Zqm×n\mathbf{A} \in \mathbb{Z}_q^{m \times n}, a secret vector s∈Zqn\mathbf{s} \in \mathbb{Z}_q^n and a small error vector e\mathbf{e}, it is computationally hard to recover s\mathbf{s} from b=As+e\mathbf{b} = \mathbf{A}\mathbf{s} + \mathbf{e}. The noise e\mathbf{e} isn't a flaw but a mathematical necessity. Without it, the system could be solved with basic linear algebra.

The key difference from Ring-LWE lies in the matrix A\mathbf{A}. In structured schemes, A\mathbf{A} isn't truly random: it has a cyclic or negacyclic structure generated from individual polynomials. That's efficient, but it means security also depends on this structure not opening up any new attacks. In FrodoKEM, A\mathbf{A} is a genuinely random matrix with no algebraic properties at all. Its security therefore reduces more directly to the general LWE problem, without any additional structural assumptions.

Key Generation: How FrodoKEM Builds a Key Pair

Key generation in FrodoKEM follows a simple but computationally demanding logic.

Step 1: Matrix generation. A large matrix A∈Zqn×n\mathbf{A} \in \mathbb{Z}_q^{n \times n} is generated pseudorandomly from a public seed. FrodoKEM supports two primitives for this: AES-128 (ideal for hardware with AES-NI acceleration) or SHAKE-128 (a Keccak-based XOF that's faster in software without AES-NI). The seed is public, since the security of the system doesn't depend on keeping A\mathbf{A} secret.

Step 2: Error sampling. Two matrices with small entries, S\mathbf{S} and E\mathbf{E}, are sampled from a distribution that closely approximates a discrete Gaussian. Their entries are small (typically single digits), but they are what makes the system hard to attack. S\mathbf{S} becomes the private key, while E\mathbf{E} is only needed to compute the public key and is then discarded.

Step 3: Public key. The public key is B=AS+E(modq)\mathbf{B} = \mathbf{A}\mathbf{S} + \mathbf{E} \pmod{q}. Anyone who knows B\mathbf{B} and A\mathbf{A} but not S\mathbf{S} and E\mathbf{E} cannot recover S\mathbf{S}. That is exactly the LWE problem.

The main cost lies in the matrix multiplication AS\mathbf{A}\mathbf{S}. In ML-KEM, the NTT brings polynomial multiplication down to O(nlog⁡n)\mathcal{O}(n \log n). In FrodoKEM, A\mathbf{A} is a full n×nn \times n matrix, so the effort grows quadratically with nn. Optimized implementations help, but it remains considerably more expensive. That's the direct price of doing without algebraic structure.

Encapsulation and Decapsulation

The actual key encapsulation, i.e. agreeing on a shared secret, follows the principle of the Regev cryptosystem, adapted for use as a KEM.

Encapsulation (sender): The sender samples additional error matrices S′\mathbf{S}', E′\mathbf{E}' and E′′\mathbf{E}'' and computes B′=S′A+E′\mathbf{B}' = \mathbf{S}'\mathbf{A} + \mathbf{E}' and C=S′B+E′′+encode(μ)\mathbf{C} = \mathbf{S}'\mathbf{B} + \mathbf{E}'' + \text{encode}(\mu), where μ\mu is the message being encapsulated (the seed for the key material). The ciphertext is the pair (B′,C)(\mathbf{B}', \mathbf{C}).

Decapsulation (receiver): The receiver computes M=C−B′S\mathbf{M} = \mathbf{C} - \mathbf{B}'\mathbf{S}. Because of the LWE structure, the large terms cancel out, leaving encode(μ)\text{encode}(\mu) plus a small error term. Since that error is small, μ\mu can be recovered by rounding. The shared key is then derived from μ\mu using a hash function.

Rounding is the critical step. It only works if the accumulated error stays small enough, and the error distribution and parameters are chosen so that a failure is extremely unlikely.

Two Variants: FrodoKEM and eFrodoKEM

FrodoKEM comes in two variants for different deployment scenarios.

eFrodoKEM (ephemeral) is designed for scenarios where a fresh key pair is generated for every session. The public key is used once and then discarded. This is the typical TLS handshake scenario, and it provides forward secrecy by design, since there's no long-lived private key that could be compromised.

FrodoKEM (salted) addresses a more subtle problem: multi-ciphertext attacks. When a long-lived public key is reused for many encapsulations, an attacker who collects many ciphertexts might be able to gain an advantage. This variant counters that by adding a random public salt to each encapsulation, which makes every encapsulation unique without changing the underlying security structure.

So the choice between the two isn't a matter of taste but of the deployment scenario. Short-lived keys in ephemeral protocols call for eFrodoKEM. Long-lived public keys in infrastructures with many encapsulations per key pair call for salted FrodoKEM.

Parameters: Three Security Levels, Two Primitives

FrodoKEM comes in three parameter sets, matching NIST security categories 1, 3 and 5:

VariantNIST LevelEquivalent
FrodoKEM-6401AES-128
FrodoKEM-9763AES-192
FrodoKEM-13445AES-256

Each parameter set is also available with two primitives: AES and SHAKE. On hardware with AES acceleration, which includes practically every modern server processor and most smartphones, the AES variant is much faster. Without hardware acceleration, SHAKE is usually the better choice. Both are equally secure, so the choice is purely an implementation decision.

Why the BSI Sees It Differently from NIST

NIST's decision to make ML-KEM its primary standard rather than FrodoKEM isn't a rejection of FrodoKEM. It's a decision that prioritizes efficiency and broad deployability.

The BSI has weighed things differently. In its technical guidelines, it explicitly recommends FrodoKEM at levels 3 and 5 for applications with long-term confidentiality requirements, which are exactly the scenarios most exposed to store-now-decrypt-later attacks. If your data needs to stay secret for ten or twenty years, FrodoKEM is a safe choice.

This is why Classic McEliece and FrodoKEM were long mentioned together as the BSI's choices for conservative, long-term security. Since October 2026, however, the BSI has advised against Classic McEliece for new applications (more on that). That leaves FrodoKEM as the conservative option. It doesn't compete with ML-KEM but complements it where maximum confidence in security matters more than efficiency.

It's no coincidence that the French ANSSI and the Dutch NLNCSA and AIVD recommend FrodoKEM alongside the BSI. Together, these European agencies are sending a clear message: they trust structured lattices, but they want a fallback that doesn't rely on algebraic assumptions.

Implementation: Simplicity as a Security Feature

One often overlooked advantage of FrodoKEM is how easy it is to implement. Structured lattice schemes like ML-KEM require a correct NTT implementation and careful handling of polynomial arithmetic. Mistakes in these areas can open the door to side-channel attacks such as timing attacks, power analysis or cache-timing attacks.

FrodoKEM only uses matrix multiplications and straightforward error sampling over integers. The operations are simple, easy to parallelize and naturally easier to implement in constant time. In security-critical implementations, that isn't a luxury but a basic requirement, because algorithms whose running time varies leak information about secret values.

So the fact that FrodoKEM lends itself to constant-time implementation is more than an academic detail. It's a real advantage for embedded systems, HSMs and smartcards, where side-channel resistance can't be bolted on later but has to be built in from the start.

Conclusion: The Insurance Policy of the Post-Quantum World

FrodoKEM isn't the fastest algorithm, nor the most compact, and it's probably not the one most developers will integrate first.

But it is the algorithm European security agencies rely on when it really counts. It takes no algebraic shortcuts, and it would remain secure even if a cryptanalytic breakthrough hit structured lattices.

At a time when crypto-agility is becoming mandatory and migration decisions are being made for the next twenty years, FrodoKEM answers a simple question: what if we're wrong?

Then we still have FrodoKEM.

You might also like