Threebears936r2ccax
The CCA-secure round-2 Three Bears MamaBear parameter set, with a 1194-byte public key
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 Threebears936r2ccax
Threebears936r2ccax is a key encapsulation mechanism from the MamaBear 936 CCA family. It uses a 1,194-byte public key, a 2,404-byte secret key, a 1,307-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
MamaBear 936 CCA is the CCA-secure round-2 form of the middle Three Bears parameter set, built on Integer Learning With Errors. It has a 1194-byte public key, a 2404-byte secret key and a 1307-byte ciphertext. NextSSL carries it as an unverified entry.
MamaBear is the middle Three Bears parameter set, and the 936 index in the variant name refers to its size class. The CCA form adds the re-encryption check that provides chosen-ciphertext security.
NextSSL records a 1194-byte public key, a 2404-byte secret key, a 1307-byte ciphertext and a 32-byte shared secret. The sizes sit between the BabyBear and PapaBear sets in the same family.
The archive tier is unverified, so the entry is kept for research and comparison.
History
2017–2017MamaBear 936 CCA published by Mike Hamburg
How it works
- A seed generates an integer public vector and a small secret, which together form the public key.
- Encapsulation encrypts a random message and derives the shared secret from it and the ciphertext.
- Decapsulation re-encrypts, compares the ciphertext, and returns a pseudorandom key on mismatch.
Security notes
Unverified in NextSSL. Constant-time arithmetic is required for the secret integer operations.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 1,194 | Public key |
| sk | 2,404 | Secret key |
| ct | 1,307 | 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", "threebears936r2ccax", None, outs=2)
ct, ss = root.call("kem_encaps", "threebears936r2ccax", None, pk, outs=2)
assert ss == root.call("kem_decaps", "threebears936r2ccax", None, sk, ct)[0]
nextssl_root_kem_keygen("threebears936r2ccax", NULL, pk, sk);
nextssl_root_kem_encaps("threebears936r2ccax", NULL, pk, ct, ss);
nextssl_root_kem_decaps("threebears936r2ccax", 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, "threebears936r2ccax", &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.
Similar names
Looking for something else?More key encapsulation
All 110Frequently asked questions
What is Threebears936r2ccax?
Threebears936r2ccax is a KEM in the MamaBear 936 CCA family. MamaBear 936 CCA is the CCA-secure round-2 form of the middle Three Bears parameter set, built on Integer Learning With Errors.
What are the Threebears936r2ccax sizes?
In NextSSL, Threebears936r2ccax uses: public key 1,194 bytes, ciphertext 1,307 bytes, shared secret 32 bytes.
Is Threebears936r2ccax post-quantum?
Yes. Threebears936r2ccax is a post-quantum kem: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed Threebears936r2ccax and when?
Threebears936r2ccax belongs to the MamaBear 936 CCA family, first published in 2017 by Mike Hamburg.
Is Threebears936r2ccax safe to use?
Threebears936r2ccax 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).
Related families
The pre-standard Kyber-768 parameter set, a category 3 Module-LWE KEM before FIPS 203
ML-KEMNIST's primary post-quantum key encapsulation mechanism, standardised in FIPS 203
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
MamaBear 936 CPAThe CPA-secure round-2 Three Bears MamaBear parameter set, with a 1194-byte secret key