Saber2
The round-2 Saber KEM at the category 3 level, a Module-LWR scheme with a 992-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 Saber2
Saber2 is a key encapsulation mechanism from the Saber Round 2 family. It uses a 992-byte public key, a 2,304-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
Saber Round 2 is the round-2 Saber key encapsulation mechanism at the category 3 parameter level. It is a Module Learning With Rounding scheme with a 992-byte public key and a 1088-byte ciphertext. NextSSL carries it as an unverified entry.
Saber is a key encapsulation mechanism designed by Jan-Pieter D'Anvers, Angshuman Karmakar, Sujoy Sinha Roy and Frederik Vercauteren. Its round-2 version targets the category 3 security level, and its security rests on Module Learning With Rounding.
NextSSL records a 992-byte public key, a 2304-byte secret key and a 1088-byte ciphertext, with a 32-byte shared secret. The sizes match the category 3 round-1 Saber entry, so the round-2 changes are in the specification rather than the wire format.
The archive tier is unverified. Saber was not selected for standardisation, and ML-KEM-768 is the comparable standard choice.
How it works
- A matrix is generated from a seed, and the public key is a rounded product with a secret vector.
- Encapsulation encrypts a random message using rounded values.
- Decapsulation recovers the message, re-encrypts and compares before deriving the shared secret.
Security notes
Unverified in NextSSL. Saber was not selected for standardisation. Constant-time implementation is required.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 992 | Public key |
| sk | 2,304 | Secret key |
| ct | 1,088 | 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", "saber2", None, outs=2)
ct, ss = root.call("kem_encaps", "saber2", None, pk, outs=2)
assert ss == root.call("kem_decaps", "saber2", None, sk, ct)[0]
nextssl_root_kem_keygen("saber2", NULL, pk, sk);
nextssl_root_kem_encaps("saber2", NULL, pk, ct, ss);
nextssl_root_kem_decaps("saber2", 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, "saber2", &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 Saber2?
Saber2 is a KEM in the Saber Round 2 family. Saber Round 2 is the round-2 Saber key encapsulation mechanism at the category 3 parameter level.
What are the Saber2 sizes?
In NextSSL, Saber2 uses: public key 992 bytes, ciphertext 1,088 bytes, shared secret 32 bytes.
Is Saber2 post-quantum?
Yes. Saber2 is a post-quantum kem: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed Saber2 and when?
Saber2 belongs to the Saber Round 2 family, first published by Jan-Pieter D'Anvers, Angshuman Karmakar, Sujoy Sinha Roy, Frederik Vercauteren.
Is Saber2 safe to use?
Saber2 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-768The pre-standard Kyber-768 parameter set, a category 3 Module-LWE KEM before FIPS 203
LightSaberThe smallest Saber parameter set, a category 1 Module-LWR KEM with a 672-byte public key
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