Struct sodoken::hash::blake2b::Blake2bHash
source · pub struct Blake2bHash<const N: usize>(/* private fields */);
Expand description
A streaming hash instance.
Implementations§
source§impl<const N: usize> Blake2bHash<N>
impl<const N: usize> Blake2bHash<N>
sourcepub fn new() -> SodokenResult<Self>
pub fn new() -> SodokenResult<Self>
Construct a new blake2b streaming hash instance
sourcepub fn with_key<K>(key: K) -> SodokenResult<Self>
pub fn with_key<K>(key: K) -> SodokenResult<Self>
Construct a new blake2b streaming hash instance with key
sourcepub async fn update<D>(&mut self, data: D) -> SodokenResult<()>
pub async fn update<D>(&mut self, data: D) -> SodokenResult<()>
Update with additional data
sourcepub fn finish<R>(self, result: R) -> SodokenResult<()>
pub fn finish<R>(self, result: R) -> SodokenResult<()>
Finalize the hashing, filling in the results
Auto Trait Implementations§
impl<const N: usize> RefUnwindSafe for Blake2bHash<N>
impl<const N: usize> Send for Blake2bHash<N>
impl<const N: usize> Sync for Blake2bHash<N>
impl<const N: usize> Unpin for Blake2bHash<N>
impl<const N: usize> UnwindSafe for Blake2bHash<N>
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