Rlce-KEM-128a-R1
A random linear code KEM from the first round, with very large public keys across four parameter sets
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 Rlce-KEM-128a-R1
Rlce-KEM-128a-R1 is one of 6 RLCE-KEM Round 1 variants in the NextSSL registry, a key encapsulation mechanism. It uses a 118,441-byte public key, a 179,946-byte secret key, a 785-byte ciphertext and a 64-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
RLCE-KEM Round 1 is a key encapsulation mechanism based on random linear codes, submitted in round 1 of the NIST post-quantum process. It has four parameter sets, from 128-bit to 192-bit levels, with public keys from about 118 KB to 451 KB. NextSSL carries it as an unverified archival entry.
RLCE-KEM is a code-based key encapsulation mechanism built on random linear codes, a design associated with Yongge Wang. Code-based schemes rest on the difficulty of decoding a general linear code, which is a different hardness assumption from the lattice schemes that dominate the archive's KEM families.
NextSSL carries four variants: rlce-kem-128a-r1, rlce-kem-128b-r1, rlce-kem-192a-r1 and rlce-kem-192b-r1, each with a 64-byte shared secret. Public keys range from 118441 to 450761 bytes and secret keys from 179946 to 747393 bytes, while ciphertexts are much smaller, between 785 and 1545 bytes.
The large keys are the main practical cost. The archive tier is unverified, so the family is kept for comparison of code-based KEM sizes and not for deployment.
History
2016–2025NIST calls for post-quantum KEMs and signatures
NIST Post-Quantum Cryptography standardisationRLCE-KEM Round 1 published by Yongge Wang
69 complete round-1 submissions published
NIST Post-Quantum Cryptography standardisation26 candidates advance to round 2
NIST Post-Quantum Cryptography standardisationRound 3 finalists and alternates announced
NIST Post-Quantum Cryptography standardisationKyber, Dilithium, Falcon and SPHINCS+ selected; round 4 opens
NIST Post-Quantum Cryptography standardisationFIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) published
NIST Post-Quantum Cryptography standardisationHQC selected as a second KEM
NIST Post-Quantum Cryptography standardisation
How it works
- A random linear code is generated together with a structure that allows efficient decoding for the key holder.
- Encapsulation encrypts a random message as a codeword with added errors, and derives the shared secret from it.
- Decapsulation uses the secret structure to decode the ciphertext, recovers the message, and checks it before deriving the secret.
Security notes
Unverified in NextSSL. Code-based KEMs with structured codes have seen key-recovery attacks in the literature, so the security margin should be checked against the submission.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 118,441 | Public key |
| sk | 179,946 | Secret key |
| ct | 785 | Ciphertext |
| ss | 64 | 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", "rlce-kem-128a-r1", None, outs=2)
ct, ss = root.call("kem_encaps", "rlce-kem-128a-r1", None, pk, outs=2)
assert ss == root.call("kem_decaps", "rlce-kem-128a-r1", None, sk, ct)[0]
nextssl_root_kem_keygen("rlce-kem-128a-r1", NULL, pk, sk);
nextssl_root_kem_encaps("rlce-kem-128a-r1", NULL, pk, ct, ss);
nextssl_root_kem_decaps("rlce-kem-128a-r1", 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, "rlce-kem-128a-r1", &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.
Other RLCE-KEM Round 1 variants
5More key encapsulation
All 110Frequently asked questions
What is Rlce-KEM-128a-R1?
Rlce-KEM-128a-R1 is a KEM in the RLCE-KEM Round 1 family. RLCE-KEM Round 1 is a key encapsulation mechanism based on random linear codes, submitted in round 1 of the NIST post-quantum process.
What are the Rlce-KEM-128a-R1 sizes?
In NextSSL, Rlce-KEM-128a-R1 uses: public key 118,441 bytes, ciphertext 785 bytes, shared secret 64 bytes.
Is Rlce-KEM-128a-R1 post-quantum?
Yes. Rlce-KEM-128a-R1 is a post-quantum kem: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed Rlce-KEM-128a-R1 and when?
Rlce-KEM-128a-R1 belongs to the RLCE-KEM Round 1 family, first published in 2017 by Yongge Wang. Its origin: NIST PQC Round 1 submission.
Is Rlce-KEM-128a-R1 safe to use?
Rlce-KEM-128a-R1 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).
What other RLCE-KEM Round 1 variants are there?
NextSSL also registers rlce-kem-128b-r1, rlce-kem-192a-r1, rlce-kem-192b-r1, rlce-kem-256a-r1, rlce-kem-256b-r1 in the RLCE-KEM Round 1 family.
Related families
Code-based KEM on binary Goppa codes: very large public keys, tiny ciphertexts
HQCHamming Quasi-Cyclic: a code-based KEM chosen by NIST as a backup to ML-KEM
ML-KEMNIST's primary post-quantum key encapsulation mechanism, standardised in FIPS 203
CROSSCode-based signatures from the restricted syndrome decoding problem
MEDSMatrix code equivalence signatures where each identifier gives the public key size in bytes