In 2024, the National Institute of Standards and Technology (NIST) announced three standards for post-quantum cryptography (PQC). Two of those standards, ML-KEM and ML-DSA are based on lattice-based cryptography, an approach to encryption that remains safe against a quantum computer.
To tell us more about how lattice-based cryptography works, we talked with cryptographer Peter Schwabe, the co-creator of both ML-KEM and ML-DSA and the scientific director of the Max Planck Institute for Security and Privacy in Bochum, Germany. Our talk, which delved pretty quickly into technical territory, covers how the algorithms work at a mathematical level, the situations in which lattice-based cryptography performs best, and some of the method’s drawbacks.
This is Part Three of our interview with Peter Schwabe. In Part One we discuss the PQC transition in general, and in Part Two we talk about other kinds of PQC algorithms and the future of the field. This interview has been lightly edited for clarity and length.
The ideas of lattice-based cryptography I think are most easily visualized in 2D. Imagine a mesh where you have a regular grid of wires, and then their crossings are just dots in that mesh. And you basically say, well, the mesh starts somewhere. That’s the zero point.
And then I can give you two points in that mesh that span the mesh. You basically take integer multiples of those and you add them and then you get the whole mesh. And you can imagine if I take exactly two next to each other and then span the smallest little thing, it’s very obvious what the whole mesh looks like. You can immediately draw it. But if I give you two that are very long pointing in a similar direction, it’s already hard to see what that mesh looks like.
So now what if I give you a point that is not in the mesh, and I ask you what’s the closest mesh point to this? And if I give you an efficient basis, so the one where you immediately see what the mesh looks like, then you can just draw the mesh and you see which one is closest, and you’re done. For the inefficient basis, it’s much, much harder to figure this out.
Now, in two dimensions, we can solve this. This is trivial. But we can do this in, say, 1,000 dimensions. And then we’re basically trying to ask, OK, so what is the closest point here?
The underlying idea is that there are these problems of figuring out what is the closest point, or what is the shortest vector. So, finding the shortest distance between two points in such a high dimensional lattice. Those problems are what, ideally, everything boils down to.
For these problems, at least in very high dimensions, there’s good evidence that those problems are hard also for a quantum computer.
It’s probably the most universal sub-realm in the realm of post quantum cryptography compared to various others. So for example, multivariate is good for building signatures and then typically, or at least historically, for signatures that are very small. With large public keys, and maybe with Mayo that changes, but not so much for encryption.
Code-based cryptography is mostly good for encryption. Well, with the recent progress on cryptanalysis, let’s see what remains afterwards, but it’s not so good for signatures.
Lattice-based cryptography is quite powerful for much more advanced constructions than anything that is standardized now. So for fully homomorphic encryption, where you can actually do computations on ciphertexts, or create all kinds of more involved feature-rich signatures, for example, there’s typically lattice based constructions that achieve certain security notions.
So lattice-based cryptography is, I think universally good, but then for some cases a specialist solution gives you better performance. So an example, though again keeping in mind the recent cryptanalysis progress, is Classic McEliece which has pretty big public keys but very small ciphertexts.
We used this a couple of years ago to build a post-quantum secure VPN for only the static keys, because you don’t need to install them on the server or on the client and then afterwards you get extremely good performance in terms of ciphertext sizes. But it only works really well if you have the static public keys.
Another scenario is hash-based signatures, where their signing is slow, the signatures are big, but actually the public keys are very small. So if you have a device where the storage for a public key that you trust is very expensive because you need to protect it, for example, against modifications or whatever, but you can handle large signatures because they’re just streamed in and you verify them and then you ignore it, then hash-based signatures might actually be your most efficient solution.
This Q&A is condensed and lightly edited from an interview with Peter Schwabe. Schwabe’s views are his own and do not necessarily represent the position of SecureW2.
SecureW2 is a leader in modern cloud PKI and certificate-based agentic AI security. Through its Signal blog, SecureW2 works with real human technology journalists to interview a range of top industry subject matter experts and thought leaders.