Hawk1024-R2
Lattice signatures from the lattice isomorphism problem, 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 Hawk1024-R2
Hawk1024-R2 is one of 3 HAWK variants in the NextSSL registry, a digital signature scheme. It uses a 2,440-byte public key, a 360-byte secret key and a 1–1,221-byte signature. 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
HAWK is a hash-and-sign signature scheme whose security relies on the module lattice isomorphism problem. It produces compact signatures like Falcon while avoiding high-precision floating-point arithmetic.
In HAWK the secret key is a basis of the simple lattice Z^2n, a lattice where finding short vectors is easy, and the public key is a quadratic form that describes the same lattice in a scrambled basis. Recovering the hidden isomorphism is the module lattice isomorphism problem. Signing hashes the message to a target and uses the secret basis to sample a short vector by discrete Gaussian sampling over Z^2n, which can be done with small integer tables rather than floating point.
This gives Falcon-like key and signature sizes with simpler, faster and more easily constant-time signing. The trade-off is reliance on a newer assumption that has had less cryptanalytic attention than LWE or NTRU. Signing in HAWK is reported to be considerably faster than Falcon and needs much less code, and verification is also efficient. These properties make it attractive for embedded devices, where floating-point Gaussian sampling is a particular burden.
Three parameter sets from the Round 2 specification are present: HAWK-512 (category 1), HAWK-1024 (category 5) and HAWK-256, a small challenge parameter set intended to encourage cryptanalysis rather than for production use. HAWK-512 has public keys of about 1 KB and signatures of roughly 550 bytes, and HAWK-1024 roughly doubles both. Parameters may still change before NIST concludes the round.
History
2022–2024HAWK published by Léo Ducas, Eamonn W. Postlethwaite, Ludo N. Pulles, Wessel van Woerden
NIST calls for additional post-quantum signature schemes
NIST additional signatures on-ramp40 round-1 candidates published
NIST additional signatures on-ramp14 candidates advance to round 2
NIST additional signatures on-ramp
How it works
- KeyGen samples a secret basis B of Z^2n and publishes the quadratic form Q = B^T B.
- Sign hashes the message and a salt to a target vector.
- A discrete Gaussian sample over Z^2n near the target is obtained with the secret basis.
- Verify checks the signature's norm under the public quadratic form.
Security notes
The lattice isomorphism assumption is comparatively young. HAWK-256 is a challenge parameter set and must not be used for real security. The scheme is still under NIST evaluation and may change.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| pk | 2,440 | Public key |
| sk | 360 | Secret key |
| sig | 1 – 1,221 | Signature |
| seed | 0 | Seed |
| ctx | 0 | Context string |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'unverified' is reachable from the root API only
pk, sk = root.call("sign_keygen", "hawk1024-r2", None, outs=2)
sig = root.call("sign_detached", "hawk1024-r2", None, sk, b"message", b"")[0]
ok = root.check("verify_detached", "hawk1024-r2", None, pk, b"message", b"", sig)
nextssl_root_sign_keygen("hawk1024-r2", NULL, pk, sk);
nextssl_root_sign_detached("hawk1024-r2", NULL, sk, msg, ctx, sig);
nextssl_root_verify_detached("hawk1024-r2", NULL, pk, msg, ctx, sig);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_sign_in(reg::all(), Policy::Any, "hawk1024-r2", &Params::new())?;
let (pk, sk) = alg.keygen(&mut *rng)?;
let sig = alg.sign(&sk, b"message")?;
let ok = alg.verify(&pk, b"message", &sig)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other HAWK variants
2Similar names
Looking for something else?More digital signatures
All 503Frequently asked questions
What is Hawk1024-R2?
Hawk1024-R2 is a signature in the HAWK family. HAWK is a hash-and-sign signature scheme whose security relies on the module lattice isomorphism problem.
What are the Hawk1024-R2 sizes?
In NextSSL, Hawk1024-R2 uses: public key 2,440 bytes, signature 1 to 1,221 bytes.
Is Hawk1024-R2 post-quantum?
Yes. Hawk1024-R2 is a post-quantum signature: it is designed to resist attacks by large quantum computers. Its tier in NextSSL is unverified.
Who designed Hawk1024-R2 and when?
Hawk1024-R2 belongs to the HAWK family, first published in 2022 by Léo Ducas, Eamonn W. Postlethwaite, Ludo N. Pulles, Wessel van Woerden. Its origin: NIST additional signatures Round 2.
Is Hawk1024-R2 safe to use?
Hawk1024-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 HAWK variants are there?
NextSSL also registers hawk256-r2, hawk512-r2 in the HAWK family.