pub struct Sha512 { /* private fields */ }
Expand description
| A hasher class for SHA-512. |
Implementations§
Source§impl Sha512
impl Sha512
pub fn size(&self) -> u64
pub fn new() -> Self
pub fn write(&mut self, data: *const u8, len: usize) -> &mut Sha512
pub fn finalize(&mut self, hash: [u8; 64])
pub fn reset(&mut self) -> &mut Sha512
Sourcepub fn feed_data_in<T>(&mut self, rhs: &mut T)
pub fn feed_data_in<T>(&mut self, rhs: &mut T)
| Helper to easily feed data into a Sha512. | | ———– | @note | | this does not serialize the passed object | (like stream.h’s << operators do). | | Its raw memory representation is used | directly. |
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sha512
impl RefUnwindSafe for Sha512
impl Send for Sha512
impl Sync for Sha512
impl Unpin 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