pub struct Sha256 { /* private fields */ }Expand description
SHA-256 hasher.
Implementations§
Trait Implementations§
Source§impl Hasher for Sha256
impl Hasher for Sha256
Source§fn hash(parts: &[&[u8]]) -> Self::Digest
fn hash(parts: &[&[u8]]) -> Self::Digest
Hash the concatenation of
parts in a single shot. Read moreSource§fn hash_pair(
left: &[&[u8]],
right: &[&[u8]],
_strategy: &impl Strategy,
) -> (Self::Digest, Self::Digest)
fn hash_pair( left: &[&[u8]], right: &[&[u8]], _strategy: &impl Strategy, ) -> (Self::Digest, Self::Digest)
Hash two messages, each given as a concatenation of parts, in a
single shot, splitting the work across
strategy when the hash
function allows it. Read moreSource§fn hash_many<M: AsRef<[u8]> + Sync>(
messages: &[M],
strategy: &impl Strategy,
) -> Vec<Self::Digest>
fn hash_many<M: AsRef<[u8]> + Sync>( messages: &[M], strategy: &impl Strategy, ) -> Vec<Self::Digest>
Hash multiple independent byte slices, splitting them across
strategy. Read moreAuto Trait Implementations§
impl Freeze for Sha256
impl RefUnwindSafe for Sha256
impl Send for Sha256
impl Sync for Sha256
impl Unpin for Sha256
impl UnsafeUnpin for Sha256
impl UnwindSafe for Sha256
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