#hash #fingerprint #api-bindings

umash

Idiomatic API for the umash hash/fingerprint function

5 releases (3 breaking)

0.4.1 Oct 10, 2021
0.4.0 Oct 10, 2021
0.3.0 Oct 10, 2021
0.2.0 Aug 15, 2021
0.1.2 May 10, 2021

#1470 in Algorithms

Download history 160/week @ 2023-11-20 342/week @ 2023-11-27 154/week @ 2023-12-04 146/week @ 2023-12-11 106/week @ 2024-01-01 178/week @ 2024-01-08 290/week @ 2024-01-15 180/week @ 2024-01-22 278/week @ 2024-01-29 154/week @ 2024-02-05 130/week @ 2024-02-12 244/week @ 2024-02-19 220/week @ 2024-02-26 112/week @ 2024-03-04

706 downloads per month
Used in verneuil

MIT license

21KB
327 lines

umash-rs: a rust API for UMASH

Build Status crates.io

UMASH is a family of fast hash / fingerprinting functions with collision bounds. This crate builds on x86-64 (with CLMUL) and little-endian aarch64 (with VMULL). The UMASH family of functions is defined independently of hardware specific features, so computes the same values on both architecture.

See https://github.com/backtrace-labs/umash for more details.


lib.rs:

UMASH is an almost-universal family of hash functions. Each Params struct defines a specific hash function; when the parameters are generated pseudorandomly, the probability that two different inputs of up to s bytes collide (for an independently generated set of parameters) is at most ceil(s / 4096) 2^-55 for the 64-bit hash. The 128-bit fingerprint reduces that probability to less than 2^-70 for inputs of 1 GB or less.

See the reference repo for more details and proofs.

Dependencies

~105–430KB