pub struct Sha256Hasher { /* private fields */ }Available on (crate features
hash-blake3 or hash-sha2) and crate feature hash-sha2 only.Expand description
Streaming SHA-256 hasher for inputs that don’t fit in memory.
§Example
use crypt_io::hash::Sha256Hasher;
let mut h = Sha256Hasher::new();
h.update(b"first ");
h.update(b"second");
let d = h.finalize();
assert_eq!(d.len(), 32);Implementations§
Source§impl Sha256Hasher
impl Sha256Hasher
Trait Implementations§
Source§impl Clone for Sha256Hasher
impl Clone for Sha256Hasher
Source§fn clone(&self) -> Sha256Hasher
fn clone(&self) -> Sha256Hasher
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Sha256Hasher
impl Debug for Sha256Hasher
Source§impl Default for Sha256Hasher
impl Default for Sha256Hasher
Source§fn default() -> Sha256Hasher
fn default() -> Sha256Hasher
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Sha256Hasher
impl RefUnwindSafe for Sha256Hasher
impl Send for Sha256Hasher
impl Sync for Sha256Hasher
impl Unpin for Sha256Hasher
impl UnsafeUnpin for Sha256Hasher
impl UnwindSafe for Sha256Hasher
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