Newhope1024cpa-R2
The round-2 NewHope ring-LWE KEM, with CCA and CPA-secure 512 and 1024 forms
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 Newhope1024cpa-R2
Newhope1024cpa-R2 is one of 4 NewHope Round 2 variants in the NextSSL registry, a key encapsulation mechanism. It uses a 1,824-byte public key, a 1,792-byte secret key, a 2,176-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–2025NewHope key exchange presented at USENIX Security
Google tests CECPQ1 (X25519 + NewHope) in Chrome
NewHope submitted to NIST PQC
26 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 public polynomial is derived from a seed, and a narrow secret is sampled for the key pair.
- Encapsulation encrypts a random message with the number-theoretic transform, and the CCA forms verify the ciphertext on decapsulation.
- 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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 1,824 | Public key |
| sk | 1,792 | Secret key |
| ct | 2,176 | Ciphertext |
| ss | 32 | 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", "newhope1024cpa-r2", None, outs=2)
ct, ss = root.call("kem_encaps", "newhope1024cpa-r2", None, pk, outs=2)
assert ss == root.call("kem_decaps", "newhope1024cpa-r2", None, sk, ct)[0]
nextssl_root_kem_keygen("newhope1024cpa-r2", NULL, pk, sk);
nextssl_root_kem_encaps("newhope1024cpa-r2", NULL, pk, ct, ss);
nextssl_root_kem_decaps("newhope1024cpa-r2", 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, "newhope1024cpa-r2", &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 NewHope Round 2 variants
3Similar names
Looking for something else?More key encapsulation
All 110Frequently asked questions
What is Newhope1024cpa-R2?
Newhope1024cpa-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 Newhope1024cpa-R2 sizes?
In NextSSL, Newhope1024cpa-R2 uses: public key 1,824 bytes, ciphertext 2,176 bytes, shared secret 32 bytes.
Is Newhope1024cpa-R2 post-quantum?
Yes. Newhope1024cpa-R2 is a post-quantum kem: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed Newhope1024cpa-R2 and when?
Newhope1024cpa-R2 belongs to the NewHope Round 2 family, first published in 2017 by Erdem Alkim, Léo Ducas, Thomas Pöppelmann, Peter Schwabe.
Is Newhope1024cpa-R2 safe to use?
Newhope1024cpa-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, newhope512cca-r2, newhope512cpa-r2 in the NewHope Round 2 family.
Related families
A round-1 ring-LWE KEM that uses error-correcting reconciliation to agree on a shared secret
Kyber-512The 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
NewHopeEarly Ring-LWE key encapsulation, a NIST Round 2 candidate