pub struct Sha512 { /* private fields */ }Expand description
SHA-512 hasher.
Trait Implementations§
Source§impl Hasher for Sha512
impl Hasher for Sha512
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 Sha512
impl RefUnwindSafe for Sha512
impl Send for Sha512
impl Sync for Sha512
impl Unpin for Sha512
impl UnsafeUnpin for Sha512
impl UnwindSafe for Sha512
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