Groestl
A SHA-3 finalist built from two AES-like permutations in a wide-pipe construction
Old but not broken. Kept for interoperability; root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About Groestl
Groestl is a cryptographic hash function from the Grøstl family. It produces a 28–64-byte output. It takes the parameter out_len (default 32). Its registry entry cites Groestl (SHA-3 finalist), tweaked round-3 version. NextSSL lists it in the legacy tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
Overview
Grøstl is a hash function designed at the Technical University of Denmark and TU Graz that was one of the five SHA-3 finalists. It reuses AES design principles and the AES S-box, giving it a well-understood security analysis.
Grøstl's compression function computes P(h ⊕ m) ⊕ Q(m) ⊕ h, where P and Q are two distinct fixed permutations and h is a chaining state twice as wide as the output. P and Q are AES-like: they apply AddRoundConstant, SubBytes with the AES S-box, ShiftBytes and MixBytes to an 8x8 (512-bit) or 8x16 (1024-bit) byte matrix. A final output transformation P(h) ⊕ h is truncated to the digest length.
The tweaked round-3 version, which changed the round constants and shift values to resist rebound attacks found during round two, is the one carried in NextSSL. It was not selected as SHA-3 in 2012, but Kupyna borrowed its construction. Earlier round-2 Grøstl produces different digests, so test vectors must match the tweaked specification.
History
2007–2015NIST announces a public competition for a new hash standard, SHA-3
NIST SHA-3 competitionGrøstl published
64 designs submitted; 51 accepted into round 1
NIST SHA-3 competition14 designs advance to round 2
NIST SHA-3 competitionFive finalists named: BLAKE, Grøstl, JH, Keccak and Skein
NIST SHA-3 competitionKeccak selected as SHA-3
NIST SHA-3 competitionSHA-3 published as FIPS 202
NIST SHA-3 competition
Security notes
No practical attacks on full tweaked Grøstl are known; rebound attacks reach reduced rounds. It is slower than SHA-2 without AES hardware support and is rarely deployed, so NextSSL classes it as legacy.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 28 – 64 | Output |
Parameters
| Name | Type | Range | Default | Required |
|---|---|---|---|---|
| out_len | u64 | 28 – 64 | 32 | no |
Parameters are passed as a string, for example nextssl_mac("hmac", "hash=sha512", …). Omitted parameters take their declared default.
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'legacy' is reachable from the root API only
digest = root.call("hash_with", "groestl", None, b"abc")[0]
nextssl_root_hash_with("groestl", NULL, data, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let digest = reg::hash_in(reg::all(), Policy::Any, "groestl", &Params::new(), b"abc")?;
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 hash functions
All 424Frequently asked questions
What is Groestl?
Groestl is a hash in the Grøstl family. Grøstl is a hash function designed at the Technical University of Denmark and TU Graz that was one of the five SHA-3 finalists.
What are the Groestl sizes?
In NextSSL, Groestl uses: output 28 to 64 bytes.
Who designed Groestl and when?
Groestl belongs to the Grøstl family, first published in 2008 by Praveen Gauravaram, Lars R. Knudsen, Krystian Matusiewicz, Florian Mendel, Christian Rechberger, Martin Schläffer, Søren S. Thomsen. Its origin: NIST SHA-3 competition finalist.
Which standards define Groestl?
Groestl is referenced by Groestl (SHA-3 finalist), tweaked round-3 version.
Is Groestl safe to use?
Groestl is in the legacy tier. Old but not broken. Kept for interoperability; root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).
Related families
The Advanced Encryption Standard: the world's default 128-bit block cipher
JHHongjun Wu's SHA-3 finalist, built on a large bit-sliced SPN permutation
KupynaUkraine's national hash standard, DSTU 7564:2014, an AES-like wide-pipe design
SHA-3 and KeccakThe Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2
SHA-3 and KeccakThe Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2