NTRU-HPS4096821-R2
The round-2 NTRU KEM family, with HPS and HRSS parameter sets for 509 to 4096 dimensions
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 NTRU-HPS4096821-R2
NTRU-HPS4096821-R2 is one of 4 NTRU Round 2 variants in the NextSSL registry, a key encapsulation mechanism. It uses a 1,230-byte public key, a 1,590-byte secret key, a 1,230-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
NTRU Round 2 is the round-2 submission of the NTRU key encapsulation family to the NIST post-quantum process, built on NTRU lattices. It includes HPS and HRSS parameter sets. NextSSL carries four variants as unverified entries.
NTRU is a lattice-based public-key scheme first proposed in 1996 by Hoffstein, Pipher and Silverman. Its security rests on the NTRU problem over convolution polynomial rings, which is related to but distinct from the module-LWE problem used by Kyber. The round-2 submission contains HPS and HRSS parameter families.
NextSSL carries ntru-hps2048509-r2, ntru-hps2048677-r2, ntru-hps4096821-r2 and ntru-hrss701-r2, each with a 32-byte shared secret. Public keys run from 699 to 1230 bytes and ciphertexts have the same sizes as the public keys in these sets, which is a feature of the NTRU construction.
The archive tier is unverified. NTRU-based KEMs were not selected for standardisation in the NIST process, so ML-KEM is the standard counterpart.
History
2016–2025NIST calls for post-quantum KEMs and signatures
NIST Post-Quantum Cryptography standardisation69 complete round-1 submissions published
NIST Post-Quantum Cryptography standardisationNTRU Round 2 published
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
- The key pair is built from small polynomials, with the public key being a scaled ring product of a private polynomial and a public one.
- Encapsulation derives a ciphertext from a random message and the public key.
- Decapsulation multiplies by the private polynomial, recovers the message, and checks it before deriving the shared secret.
Security notes
Unverified in NextSSL. NTRU was not selected for standardisation. Constant-time arithmetic is needed to avoid timing leaks on secret polynomials.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 1,230 | Public key |
| sk | 1,590 | Secret key |
| ct | 1,230 | 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", "ntru-hps4096821-r2", None, outs=2)
ct, ss = root.call("kem_encaps", "ntru-hps4096821-r2", None, pk, outs=2)
assert ss == root.call("kem_decaps", "ntru-hps4096821-r2", None, sk, ct)[0]
nextssl_root_kem_keygen("ntru-hps4096821-r2", NULL, pk, sk);
nextssl_root_kem_encaps("ntru-hps4096821-r2", NULL, pk, ct, ss);
nextssl_root_kem_decaps("ntru-hps4096821-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, "ntru-hps4096821-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 NTRU Round 2 variants
3Similar names
Looking for something else?More key encapsulation
All 110Frequently asked questions
What is NTRU-HPS4096821-R2?
NTRU-HPS4096821-R2 is a KEM in the NTRU Round 2 family. NTRU Round 2 is the round-2 submission of the NTRU key encapsulation family to the NIST post-quantum process, built on NTRU lattices.
What are the NTRU-HPS4096821-R2 sizes?
In NextSSL, NTRU-HPS4096821-R2 uses: public key 1,230 bytes, ciphertext 1,230 bytes, shared secret 32 bytes.
Is NTRU-HPS4096821-R2 post-quantum?
Yes. NTRU-HPS4096821-R2 is a post-quantum kem: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed NTRU-HPS4096821-R2 and when?
NTRU-HPS4096821-R2 belongs to the NTRU Round 2 family, first published in 2019. Its origin: NIST PQC Round 2 submission.
Is NTRU-HPS4096821-R2 safe to use?
NTRU-HPS4096821-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 NTRU Round 2 variants are there?
NextSSL also registers ntru-hps2048509-r2, ntru-hps2048677-r2, ntru-hrss701-r2 in the NTRU Round 2 family.
Related families
Hamming Quasi-Cyclic: a code-based KEM chosen by NIST as a backup to ML-KEM
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
NTRUThe NTRU lattice KEM in its HPS and HRSS forms, a NIST Round 3 finalist
NTRU-HRSS-KEM Round 1The round-1 NTRU-HRSS key encapsulation mechanism with a 701-dimension parameter set