Struct blake2b_simd::blake2bp::Params [−][src]
pub struct Params { /* fields omitted */ }Expand description
A parameter builder for BLAKE2bp, just like the Params type for
BLAKE2b.
This builder only supports configuring the hash length and a secret key. This matches the options provided by the reference implementation.
Example
use blake2b_simd::blake2bp; let mut state = blake2bp::Params::new().hash_length(32).to_state();
Implementations
Set the length of the final hash, from 1 to OUTBYTES (64). Apart from controlling the
length of the final Hash, this is also associated data, and changing it will result in a
totally different hash.