pub struct Blake2b<T> { /* private fields */ }Expand description
A hasher struct for the Blake2b (optionally keyed) hash function.
Implementations§
Source§impl<const KEY_LEN: usize, const OUT_LEN: usize> Blake2b<ConstKeyLenConstDigestLen<KEY_LEN, OUT_LEN>>
impl<const KEY_LEN: usize, const OUT_LEN: usize> Blake2b<ConstKeyLenConstDigestLen<KEY_LEN, OUT_LEN>>
Source§impl<const KEY_LEN: usize, const OUT_LEN: usize> Blake2b<ConstKeyLenConstDigestLen<KEY_LEN, OUT_LEN>>
impl<const KEY_LEN: usize, const OUT_LEN: usize> Blake2b<ConstKeyLenConstDigestLen<KEY_LEN, OUT_LEN>>
Sourcepub fn reset_with_key(&mut self, key: &[u8; KEY_LEN])
pub fn reset_with_key(&mut self, key: &[u8; KEY_LEN])
Reset the hash state and update the key to the contents of key.
Source§impl<const KEY_LEN: usize> Blake2b<ConstKeyLen<KEY_LEN>>
impl<const KEY_LEN: usize> Blake2b<ConstKeyLen<KEY_LEN>>
Sourcepub fn reset_with_key(&mut self, key: &[u8; KEY_LEN])
pub fn reset_with_key(&mut self, key: &[u8; KEY_LEN])
Reset the hash state and update the key to the contents of key.
Trait Implementations§
Source§impl<const OUT_SIZE: usize> From<Blake2b<ConstKeyLenConstDigestLen<0, OUT_SIZE>>> for Blake2bHasher<OUT_SIZE>
impl<const OUT_SIZE: usize> From<Blake2b<ConstKeyLenConstDigestLen<0, OUT_SIZE>>> for Blake2bHasher<OUT_SIZE>
Source§impl<const OUT_SIZE: usize> InitializeDigestState for Blake2b<ConstKeyLenConstDigestLen<0, OUT_SIZE>>
impl<const OUT_SIZE: usize> InitializeDigestState for Blake2b<ConstKeyLenConstDigestLen<0, OUT_SIZE>>
Auto Trait Implementations§
impl<T> Freeze for Blake2b<T>
impl<T> RefUnwindSafe for Blake2b<T>where
T: RefUnwindSafe,
impl<T> Send for Blake2b<T>where
T: Send,
impl<T> Sync for Blake2b<T>where
T: Sync,
impl<T> Unpin for Blake2b<T>where
T: Unpin,
impl<T> UnsafeUnpin for Blake2b<T>
impl<T> UnwindSafe for Blake2b<T>where
T: UnwindSafe,
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