Three Bears
Integer Module-LWE KEM using a large Mersenne-like prime, a NIST Round 2 candidate
Overview
Three Bears is a lattice-style key encapsulation mechanism that replaces polynomial rings with arithmetic modulo a single large generalised Mersenne prime. It reached the second round of the NIST process and offers both ephemeral (CPA) and CCA-secure variants.
Most lattice KEMs work with vectors of polynomials. Three Bears instead uses vectors of large integers modulo N = 2^3120 - 2^1560 - 1, a prime chosen for fast reduction. Its security assumption, Integer Module Learning With Errors, is the integer analogue of Module-LWE. The design aims for simplicity and compact code, using cSHAKE for expansion and error correction to keep decryption failures rare.
The three parameter families are BabyBear, MamaBear and PapaBear, with module dimension 2, 3 and 4. Each integer modulo N is encoded as 312 ten-bit digits, so the variant names give the total number of digits per module vector: 624, 936 and 1248. Each family exists in an ephemeral CPA-secure form, intended for one-time keys, and a CCA-secure form obtained with a Fujisaki-Okamoto transform. Three Bears was not advanced to the third round. It remains of interest as an unusual point in the design space of LWE-based schemes.
History
2016–2025NIST calls for post-quantum KEMs and signatures
NIST Post-Quantum Cryptography standardisationThree Bears published by Mike Hamburg
69 complete round-1 submissions published
NIST Post-Quantum Cryptography standardisation26 candidates advance to round 2
NIST Post-Quantum Cryptography standardisationRound 3 finalists and alternates announced
NIST Post-Quantum Cryptography standardisationKyber, Dilithium, Falcon and SPHINCS+ selected; round 4 opens
NIST Post-Quantum Cryptography standardisationFIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) published
NIST Post-Quantum Cryptography standardisationHQC selected as a second KEM
NIST Post-Quantum Cryptography standardisation
How it works
- KeyGen samples small secret integers and publishes a noisy product with a public matrix over Z_N.
- Encapsulation creates a fresh noisy product and hides a key-encoding with forward error correction.
- Decapsulation removes the noise using the secret and decodes the key.
- CCA variants re-encrypt and compare; CPA variants skip this check and must use fresh keys.
Security notes
No practical attack is known, but the scheme received limited cryptanalysis after Round 2 and is not standardised. The CPA variants are only safe with ephemeral keys; never reuse a CPA key pair across sessions.
Typical uses
Variants in NextSSL
1| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| Threebears1248r2cca threebears1248r2cca |
unverified | pk 1584 · sk 40 · ct 1697 · ss 32 · seed 0 · coins 0 | — | root |
Frequently asked questions
Which Three Bears variants does NextSSL include?
NextSSL registers 1 Three Bears variant: threebears1248r2cca.
Families with similar names
kem · 1 variant
kem · 1 variant
kem · 1 variant
kem · 1 variant
kem · 1 variant
kem · 6 variants
kem · 6 variants
kem · 1 variant