pub struct Sha256State { /* private fields */ }Expand description
Streaming FIPS 180-4 SHA-256 hasher with zero heap allocations.
Implementations§
Source§impl Sha256State
Streaming FIPS 180-4 SHA-256 implementation without heap allocations.
impl Sha256State
Streaming FIPS 180-4 SHA-256 implementation without heap allocations.
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a fresh SHA-256 hasher state initialized to SHA256_INIT.
§Returns
Self- Fresh SHA-256 state.
Trait Implementations§
Source§impl Clone for Sha256State
impl Clone for Sha256State
Source§impl Default for Sha256State
Default construction for Sha256State.
impl Default for Sha256State
Default construction for Sha256State.
Auto Trait Implementations§
impl Forget for Sha256State
impl Freeze for Sha256State
impl Move for Sha256State
impl RefUnwindSafe for Sha256State
impl Send for Sha256State
impl Sync for Sha256State
impl Unpin for Sha256State
impl UnsafeUnpin for Sha256State
impl UnwindSafe for Sha256State
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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