Key encapsulation

Threebears624r2ccax

The CCA-secure round-2 Three Bears BabyBear parameter set, with an 804-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 Threebears624r2ccax

Threebears624r2ccax is a key encapsulation mechanism from the BabyBear 624 CCA family. It uses an 804-byte public key, a 1,624-byte secret key, a 917-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

BabyBear 624 CCA is the CCA-secure round-2 form of the smallest Three Bears parameter set, built on Integer Learning With Errors. It has an 804-byte public key, a 1624-byte secret key and a 917-byte ciphertext. NextSSL carries it as an unverified entry.

BabyBear is the smallest Three Bears parameter set, and the 624 index in the variant name refers to its size class. The CCA form adds the re-encryption check that gives chosen-ciphertext security.

NextSSL records an 804-byte public key, a 1624-byte secret key, a 917-byte ciphertext and a 32-byte shared secret. Its public key is among the smallest in the archive's lattice KEM groups, which makes it a useful size reference.

The archive tier is unverified, so the entry is for research and comparison.

History

2017–2017
  1. BabyBear 624 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

Compact lattice KEM comparisonsResearch into CCA-secure integer-LWE KEMsBenchmarking small Three Bears parameters

Sizes

FieldBytesMeaning
pk804Public key
sk1,624Secret key
ct917Ciphertext
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", "threebears624r2ccax", None, outs=2)
ct, ss = root.call("kem_encaps", "threebears624r2ccax", None, pk, outs=2)
assert ss == root.call("kem_decaps", "threebears624r2ccax", 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 Threebears624r2ccax?

Threebears624r2ccax is a KEM in the BabyBear 624 CCA family. BabyBear 624 CCA is the CCA-secure round-2 form of the smallest Three Bears parameter set, built on Integer Learning With Errors.

What are the Threebears624r2ccax sizes?

In NextSSL, Threebears624r2ccax uses: public key 804 bytes, ciphertext 917 bytes, shared secret 32 bytes.

Is Threebears624r2ccax post-quantum?

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

Who designed Threebears624r2ccax and when?

Threebears624r2ccax belongs to the BabyBear 624 CCA family, first published in 2017 by Mike Hamburg.

Is Threebears624r2ccax safe to use?

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