Key encapsulation

Kyber768-R3

The Round 3 submission of Kyber, predecessor of the ML-KEM standard

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-R3

Kyber768-R3 is one of 6 CRYSTALS-Kyber (Round 3) 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 is the Module-LWE key encapsulation mechanism that NIST selected for standardisation in 2022 and later published, with modifications, as ML-KEM in FIPS 203. This family preserves the third-round specification, including the 90s variants built on AES and SHA-2.

Kyber was submitted to the NIST post-quantum process in 2017 by the CRYSTALS team and progressed through three rounds before being selected. Its structure is the one inherited by ML-KEM: an IND-CPA lattice encryption scheme over the ring Z_3329[X]/(X^256 + 1), turned into an IND-CCA2 KEM with a Fujisaki-Okamoto style transform and implicit rejection. It was designed with constant-time implementation and vectorisation in mind.

ML-KEM is not byte-compatible with Round 3 Kyber. FIPS 203 changed how the shared secret is derived (Round 3 hashed the ciphertext into the final key), dropped the hashing of the initial random message, and added mandatory input checks on encapsulation and decapsulation keys. Round 3 test vectors therefore do not match ML-KEM outputs, and the two must not be mixed in a protocol.

Six parameter sets are present: Kyber512, Kyber768 and Kyber1024 (security categories 1, 3 and 5), and their 90s counterparts, which replace SHAKE and SHA-3 with AES-256 in counter mode and SHA-2 to benefit from hardware acceleration. The 90s variants were not carried forward into ML-KEM. Round 3 public keys and ciphertexts have the same sizes as the corresponding ML-KEM parameter sets, which makes the two easy to confuse in practice.

History

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

    NIST Post-Quantum Cryptography standardisation
  2. CRYSTALS-Kyber submitted to NIST PQC

  3. 26 candidates advance to round 2

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

    NIST Post-Quantum Cryptography standardisation
  5. Kyber selected by NIST

  6. Standardised as ML-KEM in FIPS 203

  7. 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-128, or AES-256-CTR in the 90s variants.
  2. The public key is a noisy product of the matrix and a small secret vector.
  3. Encapsulation encrypts a random message and hashes it, together with the ciphertext, into the shared key.
  4. Decapsulation decrypts, re-encrypts and compares, falling back to a pseudorandom key on mismatch.

Security notes

Superseded by ML-KEM; new deployments should use FIPS 203 instead. Round 3 Kyber remains cryptographically sound, but it is not interoperable with ML-KEM, and several implementations were affected by the KyberSlash timing leak in secret-dependent division.

Typical uses

Interoperating with early post-quantum deployments and experiments built before FIPS 203Reproducing Round 3 known-answer tests and research resultsComparing the 90s (AES/SHA-2) variants with SHAKE-based ones

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-r3", None, outs=2)
ct, ss = root.call("kem_encaps", "kyber768-r3", None, pk, outs=2)
assert ss == root.call("kem_decaps", "kyber768-r3", 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-R3?

Kyber768-R3 is a KEM in the CRYSTALS-Kyber (Round 3) family. CRYSTALS-Kyber is the Module-LWE key encapsulation mechanism that NIST selected for standardisation in 2022 and later published, with modifications, as ML-KEM in FIPS 203.

What are the Kyber768-R3 sizes?

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

Is Kyber768-R3 post-quantum?

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

Who designed Kyber768-R3 and when?

Kyber768-R3 belongs to the CRYSTALS-Kyber (Round 3) 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 3 selection, superseded by ML-KEM (FIPS 203).

Is Kyber768-R3 safe to use?

Kyber768-R3 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 3) variants are there?

NextSSL also registers kyber1024-90s-r3, kyber1024-r3, kyber512-90s-r3, kyber512-r3, kyber768-90s-r3 in the CRYSTALS-Kyber (Round 3) family.