Key encapsulation

Threebears936r2cpax

The CPA-secure round-2 Three Bears MamaBear parameter set, with a 1194-byte secret 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 Threebears936r2cpax

Threebears936r2cpax is a key encapsulation mechanism from the MamaBear 936 CPA family. It uses a 1,194-byte public key, a 1,194-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 CPA is the CPA-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 1194-byte secret key and a 1307-byte ciphertext. NextSSL carries it as an unverified entry.

MamaBear is the middle Three Bears parameter set. The CPA form omits the re-encryption check, so its secret key matches its public key length in the archive.

NextSSL records a 1194-byte public key, a 1194-byte secret key, a 1307-byte ciphertext and a 32-byte shared secret. The CPA form does not provide chosen-ciphertext security, so it is not suited to settings where an attacker can submit ciphertexts.

The archive tier is unverified, so the entry is kept for research and comparison with the CCA form.

History

2017–2017
  1. MamaBear 936 CPA 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 under the public key.
  3. Decapsulation recovers the message and derives the shared secret, without the CCA re-encryption check.

Security notes

Unverified in NextSSL. The CPA form lacks chosen-ciphertext protection and should not be used as a KEM with untrusted input.

Typical uses

Research into CPA and CCA forms of the same KEMComparing MamaBear sizes with the CCA variantBenchmarking mid-size lattice KEM parameters

Sizes

FieldBytesMeaning
pk1,194Public key
sk1,194Secret key
ct1,307Ciphertext
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", "threebears936r2cpax", None, outs=2)
ct, ss = root.call("kem_encaps", "threebears936r2cpax", None, pk, outs=2)
assert ss == root.call("kem_decaps", "threebears936r2cpax", 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 Threebears936r2cpax?

Threebears936r2cpax is a KEM in the MamaBear 936 CPA family. MamaBear 936 CPA is the CPA-secure round-2 form of the middle Three Bears parameter set, built on Integer Learning With Errors.

What are the Threebears936r2cpax sizes?

In NextSSL, Threebears936r2cpax uses: public key 1,194 bytes, ciphertext 1,307 bytes, shared secret 32 bytes.

Is Threebears936r2cpax post-quantum?

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

Who designed Threebears936r2cpax and when?

Threebears936r2cpax belongs to the MamaBear 936 CPA family, first published in 2017 by Mike Hamburg.

Is Threebears936r2cpax safe to use?

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