Crate autobahn_hash

Crate autobahn_hash 

Source
Expand description

A pure Rust implementation of HighwayHash.

A few highlights:

  • No unsafe
  • Fuzzed against the reference implementation
  • Minimal crate with few required dependencies
  • Portable to any SIMD instruction set (and reasonably fast without SIMD)

This crate requires the portable_simd nightly feature.

There are two optional features:

  • std: enables RandomState
  • multiversion: enables hash_64 and friends, which select the optimal instruction set at runtime
    • Adds the multiversion crate as a dependency
    • Also enables the std feature

Structs§

AutobahnHasher
A hash instance.
RandomStatestd
Build AutobahnHashers with random keys.

Functions§

hash_64multiversion
Hash a slice with the given key.
hash_128multiversion
Hash a slice with the given key.
hash_256multiversion
Hash a slice with the given key.