Struct blake2b_simd::blake2bp::Params
source · pub struct Params { /* private fields */ }
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§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more