Key encapsulation

Lightsaber2

The smallest Saber parameter set, a category 1 Module-LWR KEM with a 672-byte public key

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 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–2017
  1. LightSaber published by Jan-Pieter D'Anvers, Angshuman Karmakar, Sujoy Sinha Roy, Frederik Vercauteren

How it works

  1. A matrix is generated from a seed, and the public key is a rounded product of that matrix with a secret vector.
  2. Encapsulation encrypts a random message using rounded values, so no separate error sampling is needed.
  3. 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

Compact post-quantum KEM comparisonsResearch into Module-LWR key encapsulationComparisons with Kyber-512

Sizes

FieldBytesMeaning
pk672Public key
sk1,568Secret key
ct736Ciphertext
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", "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]

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

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