Key encapsulation

Threebears1248r2ccax

The CCA-secure round-2 Three Bears PapaBear parameter set, with a 1584-byte public key

unverified Root API only Post-quantum
Unverified tier.

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 Threebears1248r2ccax

Threebears1248r2ccax is a key encapsulation mechanism from the PapaBear 1248 CCA family. It uses a 1,584-byte public key, a 3,184-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 CCA is the CCA-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 3184-byte secret key and a 1697-byte ciphertext. NextSSL carries it as an unverified entry.

Three Bears is a KEM family designed by Mike Hamburg, and PapaBear is its largest parameter set, corresponding to the 1248 index in the variant name. The CCA form adds the re-encryption check that gives chosen-ciphertext security.

NextSSL records a 1584-byte public key, a 3184-byte secret key, a 1697-byte ciphertext and a 32-byte shared secret. The secret key is larger than the CPA form because it stores additional data needed for the check.

The archive tier is unverified, so the entry is kept for research and comparison with the smaller Three Bears sets.

History

2017–2017
  1. PapaBear 1248 CCA published by Mike Hamburg

How it works

  1. A seed generates an integer public vector and a small secret, which together form the public key.
  2. Encapsulation encrypts a random message and derives the shared secret from it and the ciphertext.
  3. 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

Category 5 comparisons across Three Bears setsResearch into CCA-secure integer-LWE KEMsBenchmarking large lattice KEM parameters

Sizes

FieldBytesMeaning
pk1,584Public key
sk3,184Secret key
ct1,697Ciphertext
ss32Shared secret
seed0Seed
coins0Encapsulation 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", "threebears1248r2ccax", None, outs=2)
ct, ss = root.call("kem_encaps", "threebears1248r2ccax", None, pk, outs=2)
assert ss == root.call("kem_decaps", "threebears1248r2ccax", None, sk, ct)[0]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Frequently asked questions

What is Threebears1248r2ccax?

Threebears1248r2ccax is a KEM in the PapaBear 1248 CCA family. PapaBear 1248 CCA is the CCA-secure round-2 form of the largest Three Bears parameter set, built on Integer Learning With Errors.

What are the Threebears1248r2ccax sizes?

In NextSSL, Threebears1248r2ccax uses: public key 1,584 bytes, ciphertext 1,697 bytes, shared secret 32 bytes.

Is Threebears1248r2ccax post-quantum?

Yes. Threebears1248r2ccax is a post-quantum kem: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.

Who designed Threebears1248r2ccax and when?

Threebears1248r2ccax belongs to the PapaBear 1248 CCA family, first published in 2017 by Mike Hamburg.

Is Threebears1248r2ccax safe to use?

Threebears1248r2ccax 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).