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

..30-Mar-2022-

src/H30-Mar-2022-1,4311,085

.cargo-checksum.jsonH A D03-May-202289 11

COPYINGH A D30-Mar-2022281 86

Cargo.tomlH A D30-Mar-20221.3 KiB4441

README.mdH A D30-Mar-2022944 4431

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
23If you want [serde](https://github.com/serde-rs/serde) support, include the feature like this:
24
25```toml
26[dependencies]
27siphasher = { version = "0.3", features = ["serde"] }
28```
29
3064-bit mode:
31```rust
32extern crate siphasher;
33
34use siphasher::sip::{SipHasher, SipHasher13, SipHasher24};
35```
36
37128-bit mode:
38```rust
39use siphasher::sip128::{Hasher128, Siphasher, SipHasher13, SipHasher24};
40```
41
42[API documentation](https://docs.rs/siphasher/)
43-----------------------------------------------
44