Kyber1024-R2
The second-round CRYSTALS-Kyber submission, including 90s variants built on AES and SHA-2
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 Kyber1024-R2
Kyber1024-R2 is one of 6 CRYSTALS-Kyber Round 2 variants in the NextSSL registry, a key encapsulation mechanism. It uses a 1,568-byte public key, a 3,168-byte secret key, a 1,568-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–2025NIST calls for post-quantum KEMs and signatures
NIST Post-Quantum Cryptography standardisationCRYSTALS-Kyber Round 2 published
69 complete round-1 submissions published
NIST Post-Quantum Cryptography standardisation26 candidates advance to round 2
NIST Post-Quantum Cryptography standardisationRound 3 finalists and alternates announced
NIST Post-Quantum Cryptography standardisationKyber, Dilithium, Falcon and SPHINCS+ selected; round 4 opens
NIST Post-Quantum Cryptography standardisationFIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) published
NIST Post-Quantum Cryptography standardisationHQC selected as a second KEM
NIST Post-Quantum Cryptography standardisation
How it works
- A public matrix is expanded from a seed using SHAKE, or AES-CTR in the 90s variants.
- The public key is a noisy product of that matrix with a small secret, and encapsulation encrypts a random message under it.
- 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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 1,568 | Public key |
| sk | 3,168 | Secret key |
| ct | 1,568 | 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", "kyber1024-r2", None, outs=2)
ct, ss = root.call("kem_encaps", "kyber1024-r2", None, pk, outs=2)
assert ss == root.call("kem_decaps", "kyber1024-r2", None, sk, ct)[0]
nextssl_root_kem_keygen("kyber1024-r2", NULL, pk, sk);
nextssl_root_kem_encaps("kyber1024-r2", NULL, pk, ct, ss);
nextssl_root_kem_decaps("kyber1024-r2", 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, "kyber1024-r2", &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 2 variants
5Similar names
Looking for something else?More key encapsulation
All 110Frequently asked questions
What is Kyber1024-R2?
Kyber1024-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 Kyber1024-R2 sizes?
In NextSSL, Kyber1024-R2 uses: public key 1,568 bytes, ciphertext 1,568 bytes, shared secret 32 bytes.
Is Kyber1024-R2 post-quantum?
Yes. Kyber1024-R2 is a post-quantum kem: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed Kyber1024-R2 and when?
Kyber1024-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 Kyber1024-R2 safe to use?
Kyber1024-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, kyber512-90s-r2, kyber512-r2, kyber768-90s-r2, kyber768-r2 in the CRYSTALS-Kyber Round 2 family.
Related families
The first-round CRYSTALS-Kyber submission, a Module-LWE KEM with 512, 768 and 1024 parameter sets
CRYSTALS-Kyber (Round 3)The Round 3 submission of Kyber, predecessor of the ML-KEM standard
Kyber-90s-512The category 1 Kyber variant that uses AES-256 and SHA-2 instead of SHAKE for expansion
ML-KEMNIST's primary post-quantum key encapsulation mechanism, standardised in FIPS 203
Saber (Round 3)Module Learning With Rounding KEM, a NIST Round 3 finalist