pub struct SimpleDigest(/* private fields */);
Expand description
Simple digest computation wrapper.
Use new
, update
and finalize
triplet to produce hash of arbitrary data.
Currently this instance is using Blake2s256.
Trait Implementations§
Source§impl Clone for SimpleDigest
impl Clone for SimpleDigest
Source§fn clone(&self) -> SimpleDigest
fn clone(&self) -> SimpleDigest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for SimpleDigest
impl Default for SimpleDigest
Source§fn default() -> SimpleDigest
fn default() -> SimpleDigest
Returns the “default value” for a type. Read more
Source§impl DigestLike<CoreWrapper<CtVariableCoreWrapper<Blake2sVarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>>> for SimpleDigest
impl DigestLike<CoreWrapper<CtVariableCoreWrapper<Blake2sVarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>>> for SimpleDigest
Source§fn internal_state(&mut self) -> &mut Blake2s256
fn internal_state(&mut self) -> &mut Blake2s256
Access to the internal state of the digest-like operation.
Source§fn update(&mut self, data: &[u8])
fn update(&mut self, data: &[u8])
Update the internal state of the digest-like using the given input data.
Source§fn finalize_into(&mut self, out: &mut [u8])
fn finalize_into(&mut self, out: &mut [u8])
Retrieve the final digest value into a prepared buffer and reset this instance so it could be reused for
a new computation.
Auto Trait Implementations§
impl Freeze for SimpleDigest
impl RefUnwindSafe for SimpleDigest
impl Send for SimpleDigest
impl Sync for SimpleDigest
impl Unpin for SimpleDigest
impl UnwindSafe for SimpleDigest
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