Plain LWE vs Module-LWE: What Changes in the Public Key?
Compare stored public-key data and seed-expanded matrices in FrodoKEM and ML-KEM.
Background reading Ring-LWE and Module-LWE
Read the matrix shapes
FrodoKEM-640 uses scalar arithmetic modulo 32768. Its A matrix has shape 640 × 640, and B = AS + E has shape 640 × 8. The public key stores a 16-byte seed for A and 5120 entries of B at 15 bits each. This totals 16 + 9600 = 9616 bytes.
FrodoKEM-640: [640 × 640] [640 × 8] → [640 × 8] over Z/qZ ML-KEM-768: [3 × 3] [3 × 1] → [3 × 1] over Rq
Count coefficients inside each entry
In ML-KEM-768, Rq is the ring of polynomials modulo x²⁵⁶ + 1 and 3329. View the public relation as t = As + e over that ring. The encapsulation key stores the encoded NTT-domain public vector and a 32-byte seed for the matrix. Three polynomials at 256 coefficients and 12 bits per coefficient occupy 1152 bytes. The total is 1184 bytes.
Separate seed expansion from ring structure
Both designs use a seed to avoid transmitting A. The difference in arithmetic shows up when multiplying an entry. A FrodoKEM entry is a scalar. In the polynomial ring, x·x²⁵⁵ reduces to −1, so a term that crosses degree 255 wraps with a sign change. This structured multiplication acts on many coefficients per polynomial entry.
Try the same byte count for ML-KEM-512 using two polynomials and the same seed length. The result is 800 bytes. Key size alone gives no security ordering across the two constructions. FrodoKEM specifications · FIPS 203.