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