Key encapsulation

Threebears-Babybearephem-R1

Mike Hamburg's round-1 I-LWE KEM family with BabyBear, MamaBear and PapaBear parameter sets

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 Threebears-Babybearephem-R1

Threebears-Babybearephem-R1 is one of 6 Three Bears Round 1 variants in the NextSSL registry, a key encapsulation mechanism. It uses an 804-byte public key, a 40-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

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–2017
  1. Three Bears Round 1 published by Mike Hamburg

How it works

  1. A seed generates an integer public vector together with a small secret, and the public key is the masked product.
  2. Encapsulation encrypts a random message under the public key, using integer arithmetic instead of polynomial transforms.
  3. 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

Research into integer-LWE key encapsulationComparing BabyBear, MamaBear and PapaBear sizesHistorical reference for the round-1 Three Bears design

Sizes

FieldBytesMeaning
pk804Public key
sk40Secret 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", "threebears-babybearephem-r1", None, outs=2)
ct, ss = root.call("kem_encaps", "threebears-babybearephem-r1", None, pk, outs=2)
assert ss == root.call("kem_decaps", "threebears-babybearephem-r1", 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 Threebears-Babybearephem-R1?

Threebears-Babybearephem-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-Babybearephem-R1 sizes?

In NextSSL, Threebears-Babybearephem-R1 uses: public key 804 bytes, ciphertext 917 bytes, shared secret 32 bytes.

Is Threebears-Babybearephem-R1 post-quantum?

Yes. Threebears-Babybearephem-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-Babybearephem-R1 and when?

Threebears-Babybearephem-R1 belongs to the Three Bears Round 1 family, first published in 2017 by Mike Hamburg.

Is Threebears-Babybearephem-R1 safe to use?

Threebears-Babybearephem-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-mamabear-r1, threebears-mamabearephem-r1, threebears-papabear-r1, threebears-papabearephem-r1 in the Three Bears Round 1 family.