Abstract

Four browser demos for understanding lattices, noisy equations, shared keys, and digital signatures.

In my previous article, I looked at what Anthropic’s lattice research means for encryption risk. This time, let’s make the mathematics tangible. These four browser demos let you move from a grid you can drag to generating a shared key and verifying a digital signature.

1. Start with a grid you can move

A lattice is the set of points you can reach by taking whole-number combinations of a set of arrows. Those arrows are called a basis. Different arrows can describe the same grid, and some make it much easier to see which points are close together. In Lattice Gentle, drag the arrows or switch bases and see how the same target can be easier or harder to locate. The two-dimensional grid is a teaching model for the geometry. Try Lattice Gentle (opens in a new tab)

2. See what a little noise does to a matrix

A matrix is a rectangular table of numbers. Imagine using one to mix a list of secret numbers. If you get enough exact equations, you can often work backward to recover the secret. Learning With Errors adds a small error to each result. The shorthand is b = As + e: A is the public matrix, s is the secret, and e is the error. The arithmetic wraps around a fixed number, like a clock. In the calculator, change the error values and watch what happens to the public result. Structured lattices go a step further: in the module version, the entries behave like polynomials with agreed rules for multiplying and wrapping. That structure makes computation efficient and is also something cryptographers study closely. Try the Learning With Errors calculator (opens in a new tab) · NIST FIPS 203 (opens in a new tab)

3. Use ML-KEM to establish a shared secret

Generate a key pair, then use the public key to encapsulate a new shared secret. The demo gives you a ciphertext to pass to the other side. The holder of the private key decapsulates it and obtains the same secret. A protocol can then derive keys to encrypt traffic. Watch for the moment the two sides display matching secrets. That’s the job ML-KEM does. Try Kyber Vault (opens in a new tab)

4. Use ML-DSA to sign and verify a message

Generate a signing key, sign a sample message, and verify it with the public key. Then change one character and verify again. The failure shows what the signature protects: the integrity of the message and its connection to the signing key. A separate trust mechanism tells you whose key it is. ML-DSA shares some mathematical foundations with ML-KEM, including noisy equations, and also relies on the difficulty of finding short solutions to related equations. Try Dilithium Seal (opens in a new tab) · NIST FIPS 204 (opens in a new tab)

These demos give you a feel for the difference between a mathematical idea and a deployed standard. Anthropic showed that a quantum method scales better for certain structured lattice problems under specified assumptions. At the sizes ML-KEM and ML-DSA use today, reviewers found that it still costs far more than the best known methods. That distinction is easier to appreciate once you’ve seen how changing the structure or size changes the problem. CIRG assessment (opens in a new tab)

Sources

  1. How AI and Quantum Computing Change the Way We Judge Encryption Risk (opens in a new tab), Bill Weber
  2. Lattice Gentle (opens in a new tab), crypto-lab demo
  3. Learning With Errors calculator (opens in a new tab), segv.dev
  4. Kyber Vault (opens in a new tab), crypto-lab demo
  5. Dilithium Seal (opens in a new tab), crypto-lab demo
  6. NIST FIPS 203 (opens in a new tab), NIST
  7. NIST FIPS 204 (opens in a new tab), NIST
  8. CIRG assessment (opens in a new tab), Cryptography Incident Review Group