Newhope512cca
Early Ring-LWE key encapsulation, a NIST Round 2 candidate
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–2025NewHope published by Erdem Alkim, Léo Ducas, Thomas Pöppelmann, Peter Schwabe, et al.
NIST calls for post-quantum KEMs and signatures
NIST Post-Quantum Cryptography standardisation69 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
- KeyGen expands a public polynomial a from a seed and publishes b = a*s + e.
- Encaps samples fresh small noise, computes a noisy product and encodes a random message into the coefficients.
- Decaps removes the noise with the secret s and decodes the message.
- 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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 928 | Public key |
| sk | 1,888 | Secret key |
| ct | 1,120 | 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", "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]
nextssl_root_kem_keygen("newhope512cca", NULL, pk, sk);
nextssl_root_kem_encaps("newhope512cca", NULL, pk, ct, ss);
nextssl_root_kem_decaps("newhope512cca", 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, "newhope512cca", &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.
Similar names
Looking for something else?More key encapsulation
All 110Frequently 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).