Key encapsulation

Kyber1024

The pre-standard Kyber-1024 parameter set, a category 5 Module-LWE KEM before FIPS 203

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 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–2024
  1. CRYSTALS-Kyber submitted to NIST PQC

  2. Kyber selected by NIST

  3. Standardised as ML-KEM in FIPS 203

How it works

  1. A matrix is expanded from a seed and combined with a small secret to form the public key.
  2. Encapsulation encrypts a random message and derives the shared secret from it and the ciphertext.
  3. 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

Interoperating with pre-standard Kyber deploymentsCategory 5 post-quantum KEM comparisonsResearch into Kyber parameter evolution

Sizes

FieldBytesMeaning
pk1,568Public key
sk3,168Secret key
ct1,408Ciphertext
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", "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]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Frequently 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).