• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..15-Mar-2021-

src/H15-Mar-2021-1,3731,055

.cargo-checksum.jsonH A D15-Mar-2021734 11

COPYINGH A D15-Mar-2021248 75

Cargo.tomlH A D15-Mar-20211.1 KiB3129

README.mdH A D15-Mar-2021766 3726

README.md

1SipHash implementation for Rust
2===============================
3
4This crates implements SipHash-2-4 and SipHash-1-3 in Rust.
5
6It is based on the original implementation from rust-core and exposes the
7same API.
8
9It also implements SipHash variants returning 128-bit tags.
10
11The `sip` module implements the standard 64-bit mode, whereas the `sip128`
12module implements the 128-bit mode.
13
14Usage
15-----
16In `Cargo.toml`:
17
18```toml
19[dependencies]
20siphasher = "0.3"
21```
22
2364-bit mode:
24```rust
25extern crate siphasher;
26
27use siphasher::sip::{SipHasher, SipHasher13, SipHasher24};
28```
29
30128-bit mode:
31```rust
32use siphasher::sip128::{Hasher128, Siphasher, SipHasher13, SipHasher24};
33```
34
35[API documentation](https://docs.rs/siphasher/)
36-----------------------------------------------
37