Hash functions

Groestl

A SHA-3 finalist built from two AES-like permutations in a wide-pipe construction

legacy Root API only
Legacy tier.

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–2015
  1. NIST announces a public competition for a new hash standard, SHA-3

    NIST SHA-3 competition
  2. Grøstl published

  3. 64 designs submitted; 51 accepted into round 1

    NIST SHA-3 competition
  4. 14 designs advance to round 2

    NIST SHA-3 competition
  5. Five finalists named: BLAKE, Grøstl, JH, Keccak and Skein

    NIST SHA-3 competition
  6. Keccak selected as SHA-3

    NIST SHA-3 competition
  7. SHA-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

SHA-3 competition researchReference for Kupyna and AES-based hashing

Sizes

FieldBytesMeaning
out28 – 64Output

Parameters

NameTypeRangeDefaultRequired
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]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Frequently 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).