Compact-LWE-Public-KEY-ENC-R1
A round-1 learning-with-errors public-key encryption scheme with compact 2064-byte public keys
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 Compact-LWE-Public-KEY-ENC-R1
Compact-LWE-Public-KEY-ENC-R1 is a public-key encryption scheme from the CompactLWE Round 1 family. It uses a 0–3,300-byte output, a 2,064-byte public key, a 232-byte secret key and a 1–4,020-byte ciphertext. 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
CompactLWE Round 1 is a public-key encryption scheme from the first round of the NIST post-quantum process, based on Learning With Errors. It has a 2064-byte public key and a 232-byte secret key, with ciphertexts between 1 and 4020 bytes. NextSSL carries it as an unverified archival entry.
CompactLWE is a public-key encryption scheme based on the Learning With Errors problem, submitted in round 1 of the NIST post-quantum process. Its name points to small keys and compact encoding, which were the design goals for constrained use.
NextSSL records a 2064-byte public key, a 232-byte secret key and ciphertexts ranging from 1 to 4020 bytes, which depends on the message length. The archive also records an output range of 0 to 3300 bytes and a context length of zero.
The round-1 scheme was not carried forward into the standard, and the archive tier is unverified. The entry is kept for historical comparison of LWE encryption designs.
History
2016–2025NIST calls for post-quantum KEMs and signatures
NIST Post-Quantum Cryptography standardisationCompactLWE Round 1 published
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
- The key pair is built from a noisy linear system over a lattice, with the public key as the noisy values and the secret key as the hidden vector.
- Encryption hides each message bit under a noisy linear combination of the public key.
- Decryption removes the noise with the secret vector and recovers the message.
Security notes
Unverified in NextSSL and a round-1 submission. Use ML-KEM for key establishment, and treat this encryption scheme as research material.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 0 – 3,300 | Output |
| pk | 2,064 | Public key |
| sk | 232 | Secret key |
| ct | 1 – 4,020 | Ciphertext |
| ctx | 0 | Context string |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'unverified' is reachable from the root API only
pk, sk = root.call("pke_keygen", "compact-lwe-public-key-enc-r1", None, outs=2)
ct = root.call("pke_encrypt", "compact-lwe-public-key-enc-r1", None, pk, b"secret", b"")[0]
nextssl_root_pke_encrypt("compact-lwe-public-key-enc-r1", NULL, pk, pt, label, out);
// pke is a root-only kind: use the C ABI (nextssl_root_*)
// or the Pke trait in nextssl-core/src/traits.rs
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
More public-key encryption
All 32Frequently asked questions
What is Compact-LWE-Public-KEY-ENC-R1?
Compact-LWE-Public-KEY-ENC-R1 is a PKE in the CompactLWE Round 1 family. CompactLWE Round 1 is a public-key encryption scheme from the first round of the NIST post-quantum process, based on Learning With Errors.
What are the Compact-LWE-Public-KEY-ENC-R1 sizes?
In NextSSL, Compact-LWE-Public-KEY-ENC-R1 uses: public key 2,064 bytes, ciphertext 1 to 4,020 bytes, output 0 to 3,300 bytes.
Who designed Compact-LWE-Public-KEY-ENC-R1 and when?
Compact-LWE-Public-KEY-ENC-R1 belongs to the CompactLWE Round 1 family, first published in 2017. Its origin: NIST PQC round 1.
Is Compact-LWE-Public-KEY-ENC-R1 safe to use?
Compact-LWE-Public-KEY-ENC-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).
Related families
The 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
NewHope Round 1The round-1 NewHope ring-LWE KEM in 512 and 1024 CPA-secure forms
Giophantus Round 1Three round-1 public-key encryption parameter sets with public keys from 14 KB to 27 KB
HPKEHybrid Public Key Encryption: a KEM, a KDF and an AEAD combined per RFC 9180