#crypto #hash #siphash

siphasher

SipHash functions from rust-core < 1.13

8 releases

0.2.3 Jul 30, 2018
0.2.2 Mar 23, 2017
0.2.1 Jan 24, 2017
0.2.0 Dec 5, 2016
0.1.2 Oct 26, 2016

#1 in Cryptography

Download history 21527/week @ 2018-09-20 23933/week @ 2018-09-27 27736/week @ 2018-10-04 26644/week @ 2018-10-11 28584/week @ 2018-10-18 27589/week @ 2018-10-25 31539/week @ 2018-11-01 29587/week @ 2018-11-08 32543/week @ 2018-11-15 29432/week @ 2018-11-22 27369/week @ 2018-11-29 30939/week @ 2018-12-06 30488/week @ 2018-12-13

91,775 downloads per month
Used in 1,213 crates (27 directly)

MIT/Apache

43KB
1K SLoC

SipHash implementation for Rust

SipHash was recently removed from rust-core.

This crate brings SipHasher, SipHasher13 and SipHash24 back. It is based on the original implementation from rust-core and exposes the same API.

In addition, it can return 128-bit tags.

The sip module implements the standard 64-bit mode, whereas the sip128 module implements the 128-bit mode.

Usage

In Cargo.toml:

[dependencies]
siphasher = "~0.2"

64-bit mode:

extern crate siphasher;

use siphasher::sip::{SipHasher, SipHasher13, SipHasher24};

128-bit mode:

use siphasher::sip128::{Hasher128, Siphasher, SipHasher13, SipHasher24};

API documentation

No runtime deps