pub struct Sha384 { /* private fields */ }Expand description
use it if we want to use hacl
Implementations§
Trait Implementations§
Source§impl Digest<48> for Sha384
impl Digest<48> for Sha384
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 Sha384
impl RefUnwindSafe for Sha384
impl Send for Sha384
impl Sync for Sha384
impl Unpin for Sha384
impl UnwindSafe for Sha384
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