Threebears-Papabear-R1
Mike Hamburg's round-1 I-LWE KEM family with BabyBear, MamaBear and PapaBear parameter sets
Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About Threebears-Papabear-R1
Threebears-Papabear-R1 is one of 6 Three Bears Round 1 variants in the NextSSL registry, a key encapsulation mechanism. It uses a 1,584-byte public key, a 40-byte secret key, a 1,697-byte ciphertext and a 32-byte shared secret. It is designed to resist attacks by large quantum computers. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
Overview
Three Bears Round 1 is the first-round submission of the Three Bears key encapsulation family, designed by Mike Hamburg. It is based on Integer Learning With Errors and has BabyBear, MamaBear and PapaBear parameter sets, each in standard and ephemeral forms. NextSSL carries six variants as unverified archival entries.
Three Bears is a key encapsulation mechanism designed by Mike Hamburg for the NIST post-quantum process. Its security rests on Integer Learning With Errors, a problem in which the lattice is replaced by integer vectors, which keeps the arithmetic simple and avoids the number-theoretic transform.
NextSSL carries the round-1 BabyBear, MamaBear and PapaBear variants, including the ephemeral forms, which are intended for one-time key exchange. BabyBear has an 804-byte public key and a 917-byte ciphertext, MamaBear a 1194-byte public key and a 1307-byte ciphertext. The secret key is 40 bytes, since the rest is recomputed from a seed. All use 32-byte shared secrets.
The archive tier is unverified, and the round-2 specification supersedes this round. The round-1 entries are kept for comparison of the Three Bears parameter sets.
History
2017–2017Three Bears Round 1 published by Mike Hamburg
How it works
- A seed generates an integer public vector together with a small secret, and the public key is the masked product.
- Encapsulation encrypts a random message under the public key, using integer arithmetic instead of polynomial transforms.
- Decapsulation recovers the message, re-encrypts and checks the ciphertext before deriving the shared secret.
Security notes
Unverified in NextSSL and superseded by round 2. The ephemeral forms are intended for one-time use and must not be reused across sessions.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 1,584 | Public key |
| sk | 40 | Secret key |
| ct | 1,697 | Ciphertext |
| ss | 32 | Shared secret |
| seed | 0 | Seed |
| coins | 0 | Encapsulation randomness |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'unverified' is reachable from the root API only
pk, sk = root.call("kem_keygen", "threebears-papabear-r1", None, outs=2)
ct, ss = root.call("kem_encaps", "threebears-papabear-r1", None, pk, outs=2)
assert ss == root.call("kem_decaps", "threebears-papabear-r1", None, sk, ct)[0]
nextssl_root_kem_keygen("threebears-papabear-r1", NULL, pk, sk);
nextssl_root_kem_encaps("threebears-papabear-r1", NULL, pk, ct, ss);
nextssl_root_kem_decaps("threebears-papabear-r1", NULL, sk, ct, ss);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_kem_in(reg::all(), Policy::Any, "threebears-papabear-r1", &Params::new())?;
let (pk, sk) = alg.keygen(&mut *rng)?;
let (ct, ss) = alg.encaps(&pk, &mut *rng)?;
assert_eq!(ss, alg.decaps(&sk, &ct)?);
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other Three Bears Round 1 variants
5Similar names
Looking for something else?More key encapsulation
All 110Frequently asked questions
What is Threebears-Papabear-R1?
Threebears-Papabear-R1 is a KEM in the Three Bears Round 1 family. Three Bears Round 1 is the first-round submission of the Three Bears key encapsulation family, designed by Mike Hamburg.
What are the Threebears-Papabear-R1 sizes?
In NextSSL, Threebears-Papabear-R1 uses: public key 1,584 bytes, ciphertext 1,697 bytes, shared secret 32 bytes.
Is Threebears-Papabear-R1 post-quantum?
Yes. Threebears-Papabear-R1 is a post-quantum kem: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed Threebears-Papabear-R1 and when?
Threebears-Papabear-R1 belongs to the Three Bears Round 1 family, first published in 2017 by Mike Hamburg.
Is Threebears-Papabear-R1 safe to use?
Threebears-Papabear-R1 is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).
What other Three Bears Round 1 variants are there?
NextSSL also registers threebears-babybear-r1, threebears-babybearephem-r1, threebears-mamabear-r1, threebears-mamabearephem-r1, threebears-papabearephem-r1 in the Three Bears Round 1 family.
Related families
The pre-standard Kyber-512 parameter set, a category 1 Module-LWE KEM before FIPS 203
ML-KEMNIST's primary post-quantum key encapsulation mechanism, standardised in FIPS 203
Saber Round 1The round-1 Saber KEM family, a Module-LWR scheme with light, default and fire parameter sets
Three Bears Round 2Mike Hamburg's round-2 I-LWE KEM with BabyBear, MamaBear and PapaBear CCA and CPA forms
BabyBear 624 CCAThe CCA-secure round-2 Three Bears BabyBear parameter set, with an 804-byte public key