Kyber768-90s-R3
The Round 3 submission of Kyber, predecessor of the ML-KEM standard
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-90s-R3
Kyber768-90s-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–2025NIST calls for post-quantum KEMs and signatures
NIST Post-Quantum Cryptography standardisationCRYSTALS-Kyber submitted to NIST PQC
26 candidates advance to round 2
NIST Post-Quantum Cryptography standardisationRound 3 finalists and alternates announced
NIST Post-Quantum Cryptography standardisationKyber selected by NIST
Standardised as ML-KEM in FIPS 203
HQC selected as a second KEM
NIST Post-Quantum Cryptography standardisation
How it works
- A public matrix is expanded from a seed using SHAKE-128, or AES-256-CTR in the 90s variants.
- The public key is a noisy product of the matrix and a small secret vector.
- Encapsulation encrypts a random message and hashes it, together with the ciphertext, into the shared key.
- 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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 1,184 | Public key |
| sk | 2,400 | Secret key |
| ct | 1,088 | Ciphertext |
| ss | 32 | Shared secret |
| seed | 0 | Seed |
| coins | 0 | Encapsulation 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-90s-r3", None, outs=2)
ct, ss = root.call("kem_encaps", "kyber768-90s-r3", None, pk, outs=2)
assert ss == root.call("kem_decaps", "kyber768-90s-r3", None, sk, ct)[0]
nextssl_root_kem_keygen("kyber768-90s-r3", NULL, pk, sk);
nextssl_root_kem_encaps("kyber768-90s-r3", NULL, pk, ct, ss);
nextssl_root_kem_decaps("kyber768-90s-r3", NULL, sk, ct, ss);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_kem_in(reg::all(), Policy::Any, "kyber768-90s-r3", &Params::new())?;
let (pk, sk) = alg.keygen(&mut *rng)?;
let (ct, ss) = alg.encaps(&pk, &mut *rng)?;
assert_eq!(ss, alg.decaps(&sk, &ct)?);
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other CRYSTALS-Kyber (Round 3) variants
5Similar names
Looking for something else?More key encapsulation
All 110Frequently asked questions
What is Kyber768-90s-R3?
Kyber768-90s-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-90s-R3 sizes?
In NextSSL, Kyber768-90s-R3 uses: public key 1,184 bytes, ciphertext 1,088 bytes, shared secret 32 bytes.
Is Kyber768-90s-R3 post-quantum?
Yes. Kyber768-90s-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-90s-R3 and when?
Kyber768-90s-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-90s-R3 safe to use?
Kyber768-90s-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-r3 in the CRYSTALS-Kyber (Round 3) family.
Related families
NIST's primary post-quantum key encapsulation mechanism, standardised in FIPS 203
Saber (Round 3)Module Learning With Rounding KEM, a NIST Round 3 finalist
CRYSTALS-Dilithium (Round 3)The Round 3 submission of Dilithium, predecessor of the ML-DSA standard
AES-CTRCounter mode: turns AES into a fast, parallel stream cipher
SHAKEThe extendable-output functions of FIPS 202, producing any length of output from Keccak