Checksum family

MetroHash

J. Andrew Rogers's fast 64-bit non-cryptographic hash generated by algorithm search

unverified 1 variant

Overview

MetroHash is a family of non-cryptographic hash functions by J. Andrew Rogers, released in 2015. Its constants and operation sequence were found by an automated search for fast functions that pass statistical quality tests. It provides no security against a deliberate attacker.

MetroHash64 processes 32-byte blocks using four 64-bit lanes, each updated by multiplying input words by constants, adding and rotating. The lanes are combined and a final avalanche of multiply and rotate steps produces a 64-bit result. Variants with 128-bit output also exist. It is optimised for x86-64. It is compact.

NextSSL includes MetroHash64 wired from source and not yet verified. Different MetroHash variants use different constants and are not interchangeable, so stored values must record which one was used. None of this provides security: the function has no secret key, and anyone can compute or deliberately collide its outputs. Use a seed.

History

2015–2015
  1. MetroHash published by J. Andrew Rogers

Security notes

MetroHash is not cryptographic and offers no resistance to deliberate collision finding.

Typical uses

Hash tables with trusted keysFast data fingerprinting

Variants in NextSSL

1
AlgorithmTierSizes (bytes)StandardsAPI
Metrohash
metrohash
unverified out 8 MetroHash64 (J. Andrew Rogers), NON-cryptographic root

Frequently asked questions

Which MetroHash variants does NextSSL include?

NextSSL registers 1 MetroHash variant: metrohash.