Skip to main content
QUICK REVIEW

[Paper Review] An Efficient Vectorized Hash Table for Batch Computations

Alakuijala, Jyrki, Bill Cox|arXiv (Cornell University)|Dec 19, 2016
Cryptographic Implementations and SecurityComputer Science5 references4 citations
TL;DR

This paper introduces HighwayHash, a high-performance keyed hash function that leverages SIMD multiply and permute instructions to achieve 5.2x faster speed than SipHash for 1 KiB inputs. By replacing SipHash's rotate-based mixing with 32-bit multiplications and byte permutations, it enables efficient vectorized parallelism while maintaining strong diffusion and resistance to known cryptanalytic techniques.

ABSTRACT

HighwayHash is a new pseudo-random function based on SIMD multiply and permute instructions for thorough and fast hashing. It is 5.2 times as fast as SipHash for 1 KiB inputs. An open-source implementation is available under a permissive license. We discuss design choices and provide statistical analysis, speed measurements and preliminary cryptanalysis. Assuming it withstands further analysis, strengthened variants may also substantially accelerate file checksums and stream ciphers.

Motivation & Objective

  • To design a faster alternative to SipHash that maintains strong pseudo-random properties for secure hashing.
  • To exploit modern CPU SIMD instructions—particularly 32×32-bit multiplication and byte permutation—for improved mixing and throughput.
  • To address the performance bottleneck of existing secure hash functions in batch and high-throughput workloads such as message authentication and random number generation.
  • To provide a cryptographically robust, open-source hash function that resists common attacks like rotational and differential cryptanalysis.

Proposed method

  • Uses 32×32-bit multiplication in AVX2 instructions to achieve strong mixing, replacing the slower rotate-XOR-ADD chain of SipHash.
  • Employs a novel 'zipper merge' technique to combine multiple lanes of intermediate hash states using permute and multiply operations.
  • Applies a tree-hash construction with four independent lanes, folding results via recursive hashing to produce a single 64-bit output.
  • Uses a unique finalization phase with permute-and-update steps that mix neighboring lanes and ensure avalanche across all 64 bits.
  • Relies on secret key-dependent permutations and vectorized operations to prevent key recovery via SAT solvers.
  • Incorporates padding and input length handling to ensure distinct outputs for messages with trailing zero bytes.

Experimental results

Research questions

  • RQ1Can SIMD multiply and permute instructions be used to design a faster, secure keyed hash function than SipHash?
  • RQ2Does replacing rotate-based mixing with multiplication improve both performance and diffusion in a cryptographically strong way?
  • RQ3Can the resulting hash function resist known cryptanalytic techniques such as rotational and differential attacks?
  • RQ4How does the performance of HighwayHash compare to SipHash and other fast hashes like Murmur3 and CityHash in real-world workloads?
  • RQ5Can the algorithm be made secure enough for use in message authentication and random number generation without sacrificing speed?

Key findings

  • HighwayHash achieves 5.2x higher throughput than SipHash for 1 KiB inputs, with a measured performance of approximately 0.20 cycles per byte.
  • The algorithm passes all statistical tests, including smhasher and RDRAND-like uniformity, indicating high-quality output distribution.
  • Rotational attacks are infeasible due to the high number of effective 32-bit additions (128 on average), resulting in a negligible bias of 1 in 2^1024.
  • SAT-solver-based key recovery is unlikely due to the complexity of multiplication-based logic, making it more resistant than ARX-based functions like SipHash.
  • The algorithm is secure against known weaknesses in similar functions such as CLHash and Fingerprint64, which failed distribution tests on zero-input patterns.
  • An open-source implementation is available under the permissive Apache 2.0 license, enabling adoption in production systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.