Key encapsulation

Newhope512cca

Early Ring-LWE key encapsulation, a NIST Round 2 candidate

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 Newhope512cca

Newhope512cca is a key encapsulation mechanism from the NewHope family. It uses a 928-byte public key, a 1,888-byte secret key, a 1,120-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

NewHope is a Ring Learning With Errors key encapsulation mechanism that grew out of one of the first practical post-quantum key exchanges. The CCA-secure KEM variants present here were submitted to NIST and reached the second round.

The original NewHope key exchange, published in 2016, showed that lattice-based key agreement could be fast and compact enough for TLS, and a variant of it was trialled by Google in Chrome in the CECPQ1 experiment. For the NIST process the designers recast it as a KEM, offering CPA-secure and CCA-secure versions, the latter built with a Fujisaki-Okamoto style transform.

NewHope operates in the ring Z_q[X]/(X^n + 1) with q = 12289 and n = 512 or 1024. Unlike module lattices, the ring is a single large polynomial, which makes the security level less flexible: only powers of two are natural choices for n. The scheme was not advanced to the third round; NIST preferred module-lattice schemes such as Kyber for their flexibility. Two parameter sets are present: NewHope512-CCA-KEM, targeting category 1, and NewHope1024-CCA-KEM, targeting category 5.

History

2016–2025
  1. NewHope published by Erdem Alkim, Léo Ducas, Thomas Pöppelmann, Peter Schwabe, et al.

  2. NIST calls for post-quantum KEMs and signatures

    NIST Post-Quantum Cryptography standardisation
  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. KeyGen expands a public polynomial a from a seed and publishes b = a*s + e.
  2. Encaps samples fresh small noise, computes a noisy product and encodes a random message into the coefficients.
  3. Decaps removes the noise with the secret s and decodes the message.
  4. A Fujisaki-Okamoto re-encryption check makes the KEM CCA-secure.

Security notes

No practical attack is known, but NewHope was not selected and is not maintained as a standard. Use ML-KEM for new designs; NewHope is retained for historical comparison and research.

Typical uses

Historical reference for early lattice key exchangeBenchmarking Ring-LWE against Module-LWE designsReproducing Round 2 known-answer tests

Sizes

FieldBytesMeaning
pk928Public key
sk1,888Secret key
ct1,120Ciphertext
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", "newhope512cca", None, outs=2)
ct, ss = root.call("kem_encaps", "newhope512cca", None, pk, outs=2)
assert ss == root.call("kem_decaps", "newhope512cca", 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 Newhope512cca?

Newhope512cca is a KEM in the NewHope family. NewHope is a Ring Learning With Errors key encapsulation mechanism that grew out of one of the first practical post-quantum key exchanges.

What are the Newhope512cca sizes?

In NextSSL, Newhope512cca uses: public key 928 bytes, ciphertext 1,120 bytes, shared secret 32 bytes.

Is Newhope512cca post-quantum?

Yes. Newhope512cca is a post-quantum kem: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.

Who designed Newhope512cca and when?

Newhope512cca belongs to the NewHope family, first published in 2016 by Erdem Alkim, Léo Ducas, Thomas Pöppelmann, Peter Schwabe, et al.. Its origin: NIST PQC Round 2 candidate.

Is Newhope512cca safe to use?

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