pub struct Params { /* private fields */ }
Expand description
A parameter builder for BLAKE2sp, just like the Params
type for
BLAKE2s.
This builder only supports configuring the hash length and a secret key. This matches the options provided by the reference implementation.
§Example
use blake2s_simd::blake2sp;
let mut state = blake2sp::Params::new().hash_length(32).to_state();
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Params
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