Blake2 Yet Another
The BLAKE2 cryptographic hash and message authentication code. It is implemented in pure rust, achieves the best performance without using unsafe code, and supports no_std systems.
[]
= "0.9"
Example
BLAKE2b
let mut p = blake2b_params;
p.digest;
let mut h = blake2b;
h.update;
let mut r = ;
h.digest;
let e = ;
assert_eq!;
BLAKE2s
let mut p = blake2s_params;
p.digest;
let mut h = blake2s;
h.update;
let mut r = ;
h.digest;
let e = ;
assert_eq!;
Fuzz and bench
- https://github.com/mohanson/blake2ya-native. 21% faster than blake2b_rs.
- https://github.com/mohanson/blake2ya-script. 23% faster than blake2b_ref.
License
MIT.