pub struct Sha2_512 { /* private fields */ }
Expand description
Multihash hasher.
Trait Implementations
sourceimpl StatefulHasher for Sha2_512
impl StatefulHasher for Sha2_512
type Size = UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>
type Size = UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>
The maximum Digest size for that hasher (it is stack allocated).
type Digest = Sha2Digest<<Sha2_512 as StatefulHasher>::Size>
type Digest = Sha2Digest<<Sha2_512 as StatefulHasher>::Size>
The Digest type to distinguish the output of different Hasher
implementations.
sourcepub fn finalize(&self) -> <Sha2_512 as StatefulHasher>::Digest
pub fn finalize(&self) -> <Sha2_512 as StatefulHasher>::Digest
Returns the final digest.
Auto Trait Implementations
impl RefUnwindSafe for Sha2_512
impl Send for Sha2_512
impl Sync for Sha2_512
impl Unpin for Sha2_512
impl UnwindSafe for Sha2_512
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Hasher for T where
T: StatefulHasher,
impl<T> Hasher for T where
T: StatefulHasher,
type Size = <T as StatefulHasher>::Size
type Size = <T as StatefulHasher>::Size
The maximum Digest size for that hasher (it is stack allocated).
type Digest = <T as StatefulHasher>::Digest
type Digest = <T as StatefulHasher>::Digest
The Digest type to distinguish the output of different Hasher
implementations.