Hila5-R1
A round-1 ring-LWE KEM that uses error-correcting reconciliation to agree on a shared secret
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 Hila5-R1
Hila5-R1 is a key encapsulation mechanism from the HILA5 Round 1 family. It uses a 1,824-byte public key, a 1,824-byte secret key, a 2,012-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
HILA5 Round 1 is a ring Learning With Errors key encapsulation mechanism submitted to the NIST post-quantum process in its first round. It uses error-correcting reconciliation to recover shared secrets, and its public key and secret key are both 1824 bytes. NextSSL carries it as an unverified archival entry.
HILA5 is a ring Learning With Errors key encapsulation mechanism, submitted to the first round of the NIST post-quantum process. Its design uses an error-correcting code during reconciliation, so both parties recover the same shared secret even though their values differ slightly.
NextSSL carries one variant, hila5-r1, with a 1824-byte public key, an 1824-byte secret key and a 2012-byte ciphertext, plus a 32-byte shared secret. The public key and secret key sizes are equal, which is a property of the parameter choice and not an error in the archive.
The entry is unverified and is kept as a historical round-1 candidate for research and comparison with other ring-LWE schemes such as NewHope.
History
2016–2025NIST calls for post-quantum KEMs and signatures
NIST Post-Quantum Cryptography standardisationHILA5 Round 1 published by Markku-Juhani O. Saarinen
69 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
- A ring element is derived from a seed and combined with a small secret to form the public key.
- Encapsulation adds noise and an encoded message to the ciphertext, and the encoding allows error correction.
- Decapsulation removes the noise, applies the error-correcting decoder, and derives the shared secret.
Security notes
Unverified in NextSSL and a round-1 candidate, so it is not a standard. Implementations must be constant time, as with other ring-LWE schemes.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 1,824 | Public key |
| sk | 1,824 | Secret key |
| ct | 2,012 | 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", "hila5-r1", None, outs=2)
ct, ss = root.call("kem_encaps", "hila5-r1", None, pk, outs=2)
assert ss == root.call("kem_decaps", "hila5-r1", None, sk, ct)[0]
nextssl_root_kem_keygen("hila5-r1", NULL, pk, sk);
nextssl_root_kem_encaps("hila5-r1", NULL, pk, ct, ss);
nextssl_root_kem_decaps("hila5-r1", 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, "hila5-r1", &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 Hila5-R1?
Hila5-R1 is a KEM in the HILA5 Round 1 family. HILA5 Round 1 is a ring Learning With Errors key encapsulation mechanism submitted to the NIST post-quantum process in its first round.
What are the Hila5-R1 sizes?
In NextSSL, Hila5-R1 uses: public key 1,824 bytes, ciphertext 2,012 bytes, shared secret 32 bytes.
Is Hila5-R1 post-quantum?
Yes. Hila5-R1 is a post-quantum kem: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed Hila5-R1 and when?
Hila5-R1 belongs to the HILA5 Round 1 family, first published in 2017 by Markku-Juhani O. Saarinen.
Is Hila5-R1 safe to use?
Hila5-R1 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).
Related families
The 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
NewHope Round 2The round-2 NewHope ring-LWE KEM, with CCA and CPA-secure 512 and 1024 forms
NTRU Round 2The round-2 NTRU KEM family, with HPS and HRSS parameter sets for 509 to 4096 dimensions