Hash family

Blue Midnight Wish

A wide-pipe ARX hash from the SHA-3 competition that reached the second round

unverified 1 variant NIST SHA-3 competition (round 2)

Overview

Blue Midnight Wish (BMW) is a hash function submitted to the NIST SHA-3 competition by a team led by Danilo Gligoroski. It was among the fastest second-round candidates in software but was not selected as a finalist.

BMW is a wide-pipe design: the internal chaining state is twice the output size, which protects against generic multi-collision and length-extension style attacks on narrow Merkle–Damgård chains. Its compression function combines the message with the chaining value through three functions f0, f1 and f2 built from additions, rotations, shifts and XORs, and a final output transformation folds the double-width state down to the digest.

The 256-bit family uses 32-bit words and the 512-bit family uses 64-bit words. NextSSL includes a sphlib-based BMW entry and separate BMW-256 and BMW-512 entries wired from benchmarking sources. The design was tweaked between rounds one and two to address early cryptanalytic observations. Like the other non-selected candidates, its main value today is as a reference point for understanding the designs NIST evaluated and the cryptanalysis the competition produced.

History

2007–2015
  1. NIST announces a public competition for a new hash standard, SHA-3

    NIST SHA-3 competition
  2. Blue Midnight Wish published by Danilo Gligoroski et al.

  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

Distinguishers and pseudo-collision results on the BMW compression function were published during the competition, which contributed to it not advancing to the final round. No practical collision on the full hash is known, but it is a research artefact rather than a recommended hash.

Typical uses

SHA-3 competition research and benchmarksStudying wide-pipe ARX designs

Variants in NextSSL

1
AlgorithmTierSizes (bytes)StandardsAPI
BMW512
bmw512
unverified out 64 — root

Frequently asked questions

Which Blue Midnight Wish variants does NextSSL include?

NextSSL registers 1 Blue Midnight Wish variant: bmw512.