Key encapsulation

Kyber768

The pre-standard Kyber-768 parameter set, a category 3 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 Kyber768

Kyber768 is a key encapsulation mechanism from the Kyber-768 family. 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

Kyber-768 is the category 3 pre-standard Kyber parameter set, a Module-LWE KEM with a 1184-byte public key and a 1088-byte ciphertext. It predates FIPS 203 and is not interoperable with ML-KEM-768. NextSSL carries it as an unverified entry.

Kyber-768 is the middle pre-standard Kyber parameter set, targeting NIST security category 3, roughly the strength of AES-192. It uses a module rank of three.

NextSSL records a 1184-byte public key, a 2400-byte secret key, a 1088-byte ciphertext and a 32-byte shared secret. These sizes match ML-KEM-768, but the shared-secret derivation was changed in FIPS 203, so pre-standard and standard outputs must not be mixed.

The archive tier is unverified. Use ML-KEM-768 for current systems, and use this entry for research and interoperability with earlier 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 rank-three 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-768, which is the set used in hybrid TLS deployments. Not interoperable with the standard.

Typical uses

Category 3 post-quantum KEM comparisonsInteroperating with pre-standard Kyber deploymentsBenchmarking Module-LWE parameter sets

Sizes

FieldBytesMeaning
pk1,184Public key
sk2,400Secret key
ct1,088Ciphertext
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", "kyber768", None, outs=2)
ct, ss = root.call("kem_encaps", "kyber768", None, pk, outs=2)
assert ss == root.call("kem_decaps", "kyber768", 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 Kyber768?

Kyber768 is a KEM in the Kyber-768 family. Kyber-768 is the category 3 pre-standard Kyber parameter set, a Module-LWE KEM with a 1184-byte public key and a 1088-byte ciphertext.

What are the Kyber768 sizes?

In NextSSL, Kyber768 uses: public key 1,184 bytes, ciphertext 1,088 bytes, shared secret 32 bytes.

Is Kyber768 post-quantum?

Yes. Kyber768 is a post-quantum kem: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.

Who designed Kyber768 and when?

Kyber768 belongs to the Kyber-768 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 Kyber768 safe to use?

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