Key encapsulation

Kyber768-R2

The second-round CRYSTALS-Kyber submission, including 90s variants built on AES and SHA-2

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 Kyber768-R2

Kyber768-R2 is one of 6 CRYSTALS-Kyber Round 2 variants in the NextSSL registry, a key encapsulation mechanism. It uses a 1,184-byte public key, a 2,400-byte secret key, a 1,088-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

CRYSTALS-Kyber Round 2 is the second-round Kyber submission to the NIST post-quantum process. It is a Module-LWE KEM with SHAKE-based and 90s (AES and SHA-2) parameter sets for 512, 768 and 1024. NextSSL carries six round-2 variants as unverified archival entries.

The round-2 Kyber specification refined the round-1 design and added the 90s variants, which replace SHAKE with AES-256 in counter mode and SHA-2, to suit platforms with hardware support for those primitives. The core scheme remains Module-LWE with a Fujisaki-Okamoto style transform.

NextSSL carries six variants: kyber512-r2 and kyber512-90s-r2, kyber768-r2 with its 90s counterpart, and kyber1024-r2 with its 90s counterpart. The 512 variants have 800-byte public keys and 736-byte ciphertexts, and all variants use 32-byte shared secrets.

Round 2 is superseded by the Round 3 specification and by ML-KEM, and its archive tier is unverified. It is useful for comparing round-2 and later parameters, and for reproducing results in the Kyber literature.

History

2016–2025
  1. NIST calls for post-quantum KEMs and signatures

    NIST Post-Quantum Cryptography standardisation
  2. CRYSTALS-Kyber Round 2 published

  3. 69 complete round-1 submissions published

    NIST Post-Quantum Cryptography standardisation
  4. 26 candidates advance to round 2

    NIST Post-Quantum Cryptography standardisation
  5. Round 3 finalists and alternates announced

    NIST Post-Quantum Cryptography standardisation
  6. Kyber, Dilithium, Falcon and SPHINCS+ selected; round 4 opens

    NIST Post-Quantum Cryptography standardisation
  7. FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) published

    NIST Post-Quantum Cryptography standardisation
  8. HQC selected as a second KEM

    NIST Post-Quantum Cryptography standardisation

How it works

  1. A public matrix is expanded from a seed using SHAKE, or AES-CTR in the 90s variants.
  2. The public key is a noisy product of that matrix with a small secret, and encapsulation encrypts a random message under it.
  3. Decapsulation re-encrypts the recovered message and returns a pseudorandom key if the ciphertext does not match.

Security notes

Unverified in NextSSL and superseded by Round 3 and ML-KEM. Round 2 keys are not interoperable with the standard. Implementations must avoid secret-dependent timing.

Typical uses

Reproducing round-2 Kyber resultsComparing SHAKE and AES-based expansion in KyberHistorical reference for the Kyber parameter sets

Sizes

FieldBytesMeaning
pk1,184Public key
sk2,400Secret key
ct1,088Ciphertext
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", "kyber768-r2", None, outs=2)
ct, ss = root.call("kem_encaps", "kyber768-r2", None, pk, outs=2)
assert ss == root.call("kem_decaps", "kyber768-r2", 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 Kyber768-R2?

Kyber768-R2 is a KEM in the CRYSTALS-Kyber Round 2 family. CRYSTALS-Kyber Round 2 is the second-round Kyber submission to the NIST post-quantum process.

What are the Kyber768-R2 sizes?

In NextSSL, Kyber768-R2 uses: public key 1,184 bytes, ciphertext 1,088 bytes, shared secret 32 bytes.

Is Kyber768-R2 post-quantum?

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

Who designed Kyber768-R2 and when?

Kyber768-R2 belongs to the CRYSTALS-Kyber Round 2 family, first published in 2017 by Roberto Avanzi, Joppe Bos, Léo Ducas, Eike Kiltz, Tancrède Lepoint, Vadim Lyubashevsky, John M. Schanck, Peter Schwabe, Gregor Seiler, Damien Stehlé. Its origin: NIST PQC Round 2 submission.

Is Kyber768-R2 safe to use?

Kyber768-R2 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 CRYSTALS-Kyber Round 2 variants are there?

NextSSL also registers kyber1024-90s-r2, kyber1024-r2, kyber512-90s-r2, kyber512-r2, kyber768-90s-r2 in the CRYSTALS-Kyber Round 2 family.