Lightsaber2
The smallest Saber parameter set, a category 1 Module-LWR KEM with a 672-byte public key
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 Lightsaber2
Lightsaber2 is a key encapsulation mechanism from the LightSaber family. It uses a 672-byte public key, a 1,568-byte secret key, a 736-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
LightSaber is the lowest-security parameter set of the Saber key encapsulation mechanism, based on Module Learning With Rounding. It has a 672-byte public key and a 736-byte ciphertext. NextSSL carries it as an unverified round-2 entry.
LightSaber is the category 1 parameter set of the Saber family, aimed at roughly the strength of AES-128. Saber's security rests on Module Learning With Rounding, which replaces the explicit noise of Module-LWE with deterministic rounding.
NextSSL records a 672-byte public key, a 1568-byte secret key, a 736-byte ciphertext and a 32-byte shared secret. The small public key makes LightSaber one of the more compact lattice KEMs in the archive.
The archive tier is unverified and Saber is not a NIST-standardised scheme, so the entry is kept for research and comparison with Kyber-512.
History
2017–2017LightSaber published by Jan-Pieter D'Anvers, Angshuman Karmakar, Sujoy Sinha Roy, Frederik Vercauteren
How it works
- A matrix is generated from a seed, and the public key is a rounded product of that matrix with a secret vector.
- Encapsulation encrypts a random message using rounded values, so no separate error sampling is needed.
- Decapsulation recovers the message, re-encrypts and compares before deriving the shared secret.
Security notes
Unverified in NextSSL. Saber's rounding-based design avoids error sampling, which helps constant-time implementation, but careful review is still needed.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 672 | Public key |
| sk | 1,568 | Secret key |
| ct | 736 | 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", "lightsaber2", None, outs=2)
ct, ss = root.call("kem_encaps", "lightsaber2", None, pk, outs=2)
assert ss == root.call("kem_decaps", "lightsaber2", None, sk, ct)[0]
nextssl_root_kem_keygen("lightsaber2", NULL, pk, sk);
nextssl_root_kem_encaps("lightsaber2", NULL, pk, ct, ss);
nextssl_root_kem_decaps("lightsaber2", 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, "lightsaber2", &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 Lightsaber2?
Lightsaber2 is a KEM in the LightSaber family. LightSaber is the lowest-security parameter set of the Saber key encapsulation mechanism, based on Module Learning With Rounding.
What are the Lightsaber2 sizes?
In NextSSL, Lightsaber2 uses: public key 672 bytes, ciphertext 736 bytes, shared secret 32 bytes.
Is Lightsaber2 post-quantum?
Yes. Lightsaber2 is a post-quantum kem: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed Lightsaber2 and when?
Lightsaber2 belongs to the LightSaber family, first published in 2017 by Jan-Pieter D'Anvers, Angshuman Karmakar, Sujoy Sinha Roy, Frederik Vercauteren.
Is Lightsaber2 safe to use?
Lightsaber2 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 highest-security Saber parameter set, a Module-LWR KEM with a 32-byte shared secret
Kyber-512The pre-standard Kyber-512 parameter set, a category 1 Module-LWE KEM before FIPS 203
ML-KEMNIST's primary post-quantum key encapsulation mechanism, standardised in FIPS 203
Saber Round 1The round-1 Saber KEM family, a Module-LWR scheme with light, default and fire parameter sets
Saber Round 2The round-2 Saber KEM at the category 3 level, a Module-LWR scheme with a 992-byte public key