Kyber1024
The pre-standard Kyber-1024 parameter set, a category 5 Module-LWE KEM before FIPS 203
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
Kyber1024 is a key encapsulation mechanism from the Kyber-1024 family. It uses a 1,568-byte public key, a 3,168-byte secret key, a 1,408-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
Kyber-1024 is the highest-security pre-standard Kyber parameter set, a Module-LWE KEM for NIST security category 5. It has a 1568-byte public key and a 1408-byte ciphertext. NextSSL carries it as an unverified entry that predates ML-KEM and is not interoperable with it.
Kyber-1024 is the category 5 parameter set of the Kyber scheme in the form that preceded the FIPS 203 standard. The scheme is built on Module-LWE, with a polynomial ring of degree 256 and a modulus of 3329, and it uses a Fujisaki-Okamoto style transform to reach chosen-ciphertext security.
NextSSL records a 1568-byte public key, a 3168-byte secret key and a 1408-byte ciphertext, with a 32-byte shared secret. The ciphertext is smaller than the 1568 bytes used by ML-KEM-1024, because the pre-standard encoding differs.
The pre-standard parameters are not interoperable with ML-KEM, since the shared-secret derivation changed in FIPS 203. The archive tier is unverified, so the entry is best used for comparison and interoperability with older deployments.
History
2017–2024CRYSTALS-Kyber submitted to NIST PQC
Kyber selected by NIST
Standardised as ML-KEM in FIPS 203
How it works
- A matrix is expanded from a seed and combined with a small secret to form the public key.
- Encapsulation encrypts a random message and derives the shared secret from it and the ciphertext.
- Decapsulation re-encrypts the message and returns a pseudorandom key on mismatch.
Security notes
Unverified in NextSSL and superseded by ML-KEM-1024. Not interoperable with the standard. Implementations must avoid secret-dependent timing, as in the KyberSlash issue.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 1,568 | Public key |
| sk | 3,168 | Secret key |
| ct | 1,408 | 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", None, outs=2)
ct, ss = root.call("kem_encaps", "kyber1024", None, pk, outs=2)
assert ss == root.call("kem_decaps", "kyber1024", None, sk, ct)[0]
nextssl_root_kem_keygen("kyber1024", NULL, pk, sk);
nextssl_root_kem_encaps("kyber1024", NULL, pk, ct, ss);
nextssl_root_kem_decaps("kyber1024", 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", &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.
Similar names
Looking for something else?More key encapsulation
All 110Frequently asked questions
What is Kyber1024?
Kyber1024 is a KEM in the Kyber-1024 family. Kyber-1024 is the highest-security pre-standard Kyber parameter set, a Module-LWE KEM for NIST security category 5.
What are the Kyber1024 sizes?
In NextSSL, Kyber1024 uses: public key 1,568 bytes, ciphertext 1,408 bytes, shared secret 32 bytes.
Is Kyber1024 post-quantum?
Yes. Kyber1024 is a post-quantum kem: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed Kyber1024 and when?
Kyber1024 belongs to the Kyber-1024 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é.
Is Kyber1024 safe to use?
Kyber1024 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).
Related families
The Round 3 submission of Kyber, predecessor of the ML-KEM standard
Kyber-768The pre-standard Kyber-768 parameter set, a category 3 Module-LWE KEM before FIPS 203
Kyber-90s-1024The category 5 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