Threebears1248r2cpax
The CPA-secure round-2 Three Bears PapaBear parameter set, with a 1584-byte secret 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 Threebears1248r2cpax
Threebears1248r2cpax is a key encapsulation mechanism from the PapaBear 1248 CPA family. It uses a 1,584-byte public key, a 1,584-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
PapaBear 1248 CPA is the CPA-secure round-2 form of the largest Three Bears parameter set, built on Integer Learning With Errors. It has a 1584-byte public key, a 1584-byte secret key and a 1697-byte ciphertext. NextSSL carries it as an unverified entry.
PapaBear is the largest Three Bears parameter set. The CPA form omits the re-encryption check of the CCA form, which is why its secret key is smaller and the same as the public key length in the archive.
NextSSL records a 1584-byte public key, a 1584-byte secret key, a 1697-byte ciphertext and a 32-byte shared secret. Because the CPA form does not check the ciphertext, it does not provide chosen-ciphertext security and is not suitable as a KEM in a hostile setting.
The archive tier is unverified, so the entry is kept for research and comparison with the CCA form.
History
2017–2017PapaBear 1248 CPA 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 under the public key.
- Decapsulation recovers the message and derives the shared secret, without the re-encryption check of the CCA form.
Security notes
Unverified in NextSSL. The CPA form lacks chosen-ciphertext protection and should not be used where an attacker can submit ciphertexts.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 1,584 | Public key |
| sk | 1,584 | 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", "threebears1248r2cpax", None, outs=2)
ct, ss = root.call("kem_encaps", "threebears1248r2cpax", None, pk, outs=2)
assert ss == root.call("kem_decaps", "threebears1248r2cpax", None, sk, ct)[0]
nextssl_root_kem_keygen("threebears1248r2cpax", NULL, pk, sk);
nextssl_root_kem_encaps("threebears1248r2cpax", NULL, pk, ct, ss);
nextssl_root_kem_decaps("threebears1248r2cpax", 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, "threebears1248r2cpax", &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 Threebears1248r2cpax?
Threebears1248r2cpax is a KEM in the PapaBear 1248 CPA family. PapaBear 1248 CPA is the CPA-secure round-2 form of the largest Three Bears parameter set, built on Integer Learning With Errors.
What are the Threebears1248r2cpax sizes?
In NextSSL, Threebears1248r2cpax uses: public key 1,584 bytes, ciphertext 1,697 bytes, shared secret 32 bytes.
Is Threebears1248r2cpax post-quantum?
Yes. Threebears1248r2cpax is a post-quantum kem: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed Threebears1248r2cpax and when?
Threebears1248r2cpax belongs to the PapaBear 1248 CPA family, first published in 2017 by Mike Hamburg.
Is Threebears1248r2cpax safe to use?
Threebears1248r2cpax 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-1024 parameter set, a category 5 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
PapaBear 1248 CCAThe CCA-secure round-2 Three Bears PapaBear parameter set, with a 1584-byte public key
MamaBear 936 CPAThe CPA-secure round-2 Three Bears MamaBear parameter set, with a 1194-byte secret key