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