Kyber512
The pre-standard Kyber-512 parameter set, a category 1 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 Kyber512
Kyber512 is a key encapsulation mechanism from the Kyber-512 family. It uses an 800-byte public key, a 1,632-byte secret key, a 768-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-512 is the category 1 pre-standard Kyber parameter set, a Module-LWE KEM with an 800-byte public key and a 768-byte ciphertext. It predates FIPS 203 and is not interoperable with ML-KEM-512. NextSSL carries it as an unverified entry.
Kyber-512 is the smallest pre-standard Kyber parameter set, targeting NIST security category 1, roughly the strength of AES-128. It uses the same Module-LWE structure as the larger sets, with a rank of two in the module.
NextSSL records an 800-byte public key, a 1632-byte secret key, a 768-byte ciphertext and a 32-byte shared secret. The public key and ciphertext sizes match ML-KEM-512, but the shared-secret derivation differs, so the two cannot be mixed in a protocol.
The archive tier is unverified. Use the standardised ML-KEM-512 for current systems, and use this entry for comparison and interoperability with pre-standard deployments.
History
2017–2024CRYSTALS-Kyber submitted to NIST PQC
Kyber selected by NIST
Standardised as ML-KEM in FIPS 203
How it works
- A rank-two 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 and returns a pseudorandom key on mismatch.
Security notes
Unverified in NextSSL and superseded by ML-KEM-512. Not interoperable with the standard. Implementations must be constant time.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 800 | Public key |
| sk | 1,632 | Secret key |
| ct | 768 | 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", "kyber512", None, outs=2)
ct, ss = root.call("kem_encaps", "kyber512", None, pk, outs=2)
assert ss == root.call("kem_decaps", "kyber512", None, sk, ct)[0]
nextssl_root_kem_keygen("kyber512", NULL, pk, sk);
nextssl_root_kem_encaps("kyber512", NULL, pk, ct, ss);
nextssl_root_kem_decaps("kyber512", 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, "kyber512", &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 Kyber512?
Kyber512 is a KEM in the Kyber-512 family. Kyber-512 is the category 1 pre-standard Kyber parameter set, a Module-LWE KEM with an 800-byte public key and a 768-byte ciphertext.
What are the Kyber512 sizes?
In NextSSL, Kyber512 uses: public key 800 bytes, ciphertext 768 bytes, shared secret 32 bytes.
Is Kyber512 post-quantum?
Yes. Kyber512 is a post-quantum kem: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed Kyber512 and when?
Kyber512 belongs to the Kyber-512 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 Kyber512 safe to use?
Kyber512 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 second-round CRYSTALS-Kyber submission, including 90s variants built on AES and SHA-2
CRYSTALS-Kyber (Round 3)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-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