Sarmal
A HAIFA-based hash submitted to the first round of the SHA-3 competition
Overview
Sarmal is a hash function submitted to the first round of the NIST SHA-3 competition by a team from Turkey. It uses the HAIFA iteration mode with a salt and counter and did not advance beyond the first round.
Like BLAKE and SHAvite-3, Sarmal follows the HAIFA iteration mode, in which every call to the compression function receives a salt and a counter of message bits hashed so far alongside the chaining value and message block. This defeats several generic attacks on plain Merkle–Damgård chains, such as fixed-point-based second preimages, and allows randomised hashing through the salt.
NextSSL includes Sarmal-256 and Sarmal-512 entries wired from benchmarking sources. Sarmal was one of several first-round candidates eliminated after early cryptanalysis showed weaknesses in its compression function. Its outputs are provided for completeness of the SHA-3 archive. Because the tier is unverified, outputs should be checked against independent reference values before they are relied on for anything beyond experimentation.
History
2007–2015NIST announces a public competition for a new hash standard, SHA-3
NIST SHA-3 competitionSarmal published by Kerem Varıcı, Onur Özen, Çelebi Kocair
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
Collision attacks on Sarmal were reported during the first round. These entries are unverified and must not be used for security.
Typical uses
Variants in NextSSL
1| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| Sarmal512 sarmal512 |
unverified | out 64 | — | root |
Frequently asked questions
Which Sarmal variants does NextSSL include?
NextSSL registers 1 Sarmal variant: sarmal512.
Families with similar names
Other hash functions
All 424Related
The original BLAKE hash, a SHA-3 finalist and ancestor of BLAKE2 and BLAKE3
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