blake2s_simd GitHub crates.io Actions Status

An implementation of the BLAKE2s and BLAKE2sp hash functions. See also blake2b_simd.

This crate includes:

Example

``` use blake2s_simd::{blake2s, Params};

let expected = "08d6cad88075de8f192db097573d0e829411cd91eb6ec65e8fc16c017edfdb74"; let hash = blake2s(b"foo"); asserteq!(expected, &hash.tohex());

let hash = Params::new() .hashlength(16) .key(b"Squeamish Ossifrage") .personal(b"Shaftoe") .tostate() .update(b"foo") .update(b"bar") .update(b"baz") .finalize(); asserteq!("28325512782cbf5019424fa65da9a6c7", &hash.tohex()); ```