Public-key encryption

Compact-LWE-Public-KEY-ENC-R1

A round-1 learning-with-errors public-key encryption scheme with compact 2064-byte public keys

unverified Root API only
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 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–2025
  1. NIST calls for post-quantum KEMs and signatures

    NIST Post-Quantum Cryptography standardisation
  2. CompactLWE Round 1 published

  3. 69 complete round-1 submissions published

    NIST Post-Quantum Cryptography standardisation
  4. 26 candidates advance to round 2

    NIST Post-Quantum Cryptography standardisation
  5. Round 3 finalists and alternates announced

    NIST Post-Quantum Cryptography standardisation
  6. Kyber, Dilithium, Falcon and SPHINCS+ selected; round 4 opens

    NIST Post-Quantum Cryptography standardisation
  7. FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) published

    NIST Post-Quantum Cryptography standardisation
  8. HQC selected as a second KEM

    NIST Post-Quantum Cryptography standardisation

How it works

  1. 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.
  2. Encryption hides each message bit under a noisy linear combination of the public key.
  3. 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

Historical comparison of LWE encryption schemesResearch into compact lattice encryptionComparisons with later public-key encryption designs

Sizes

FieldBytesMeaning
out0 – 3,300Output
pk2,064Public key
sk232Secret key
ct1 – 4,020Ciphertext
ctx0Context 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]

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

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