pub struct Sha512 { /* private fields */ }Expand description
use it if we want to use hacl
Implementations§
Trait Implementations§
Source§impl Digest<64> for Sha512
impl Digest<64> for Sha512
Source§fn hash(digest: &mut [u8], payload: &[u8])
fn hash(digest: &mut [u8], payload: &[u8])
Return the digest for the given input byte slice, in immediate mode.
Will panic if payload is longer than u32::MAX to ensure that hacl-rs can
process it.
Source§fn update(&mut self, payload: &[u8])
fn update(&mut self, payload: &[u8])
Add the payload to the digest.
Will panic if payload is longer than u32::MAX to ensure that hacl-rs can
process it.
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