Key encapsulation

Newhope512cpa-R2

The round-2 NewHope ring-LWE KEM, with CCA and CPA-secure 512 and 1024 forms

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 Newhope512cpa-R2

Newhope512cpa-R2 is one of 4 NewHope Round 2 variants in the NextSSL registry, a key encapsulation mechanism. It uses a 928-byte public key, an 896-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

NewHope Round 2 is the second-round ring Learning With Errors key encapsulation scheme from the NIST post-quantum process, in CCA-secure and CPA-secure forms at 512 and 1024 dimensions. NextSSL carries four variants as unverified archival entries.

The round-2 NewHope specification refined the round-1 design and added CCA-secure forms, which provide chosen-ciphertext protection suitable for a KEM. The design still uses ring-LWE with the number-theoretic transform, and the designers are Erdem Alkim, Léo Ducas, Thomas Pöppelmann and Peter Schwabe.

NextSSL carries newhope512cca-r2, newhope512cpa-r2, newhope1024cca-r2 and newhope1024cpa-r2. The CCA 512 variant has a 928-byte public key, an 1888-byte secret key and a 1120-byte ciphertext. The CCA 1024 variant has a 1824-byte public key, a 3680-byte secret key and a 2208-byte ciphertext. The CPA forms are smaller because they carry no re-encryption check.

The archive tier is unverified, and NewHope was not selected for standardisation. ML-KEM is the standard counterpart for most purposes.

History

2016–2025
  1. NewHope key exchange presented at USENIX Security

  2. Google tests CECPQ1 (X25519 + NewHope) in Chrome

  3. NewHope submitted to NIST PQC

  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. A public polynomial is derived from a seed, and a narrow secret is sampled for the key pair.
  2. Encapsulation encrypts a random message with the number-theoretic transform, and the CCA forms verify the ciphertext on decapsulation.
  3. Decapsulation recovers the message and derives the 32-byte shared secret, returning a pseudorandom value on rejection in the CCA forms.

Security notes

Unverified in NextSSL. The CPA forms lack chosen-ciphertext protection and should not be used as a KEM. Constant-time implementation is essential.

Typical uses

Research into ring-LWE key encapsulationComparing CCA and CPA forms of a lattice KEMHistorical reference for the NewHope lineage

Sizes

FieldBytesMeaning
pk928Public key
sk896Secret key
ct1,088Ciphertext
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", "newhope512cpa-r2", None, outs=2)
ct, ss = root.call("kem_encaps", "newhope512cpa-r2", None, pk, outs=2)
assert ss == root.call("kem_decaps", "newhope512cpa-r2", None, sk, ct)[0]

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

Other NewHope Round 2 variants

3

Frequently asked questions

What is Newhope512cpa-R2?

Newhope512cpa-R2 is a KEM in the NewHope Round 2 family. NewHope Round 2 is the second-round ring Learning With Errors key encapsulation scheme from the NIST post-quantum process, in CCA-secure and CPA-secure forms at 512 and 1024 dimensions.

What are the Newhope512cpa-R2 sizes?

In NextSSL, Newhope512cpa-R2 uses: public key 928 bytes, ciphertext 1,088 bytes, shared secret 32 bytes.

Is Newhope512cpa-R2 post-quantum?

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

Who designed Newhope512cpa-R2 and when?

Newhope512cpa-R2 belongs to the NewHope Round 2 family, first published in 2017 by Erdem Alkim, Léo Ducas, Thomas Pöppelmann, Peter Schwabe.

Is Newhope512cpa-R2 safe to use?

Newhope512cpa-R2 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 NewHope Round 2 variants are there?

NextSSL also registers newhope1024cca-r2, newhope1024cpa-r2, newhope512cca-r2 in the NewHope Round 2 family.