pub struct Sha256PrefixState { /* private fields */ }Expand description
The absorbed prefix of sha256_prefix_and_digest_suffix, held apart so one pass over the payload can serve many suffix attempts.
Implementations§
Source§impl Sha256PrefixState
impl Sha256PrefixState
pub fn absorb(prefix: &[&[u8]]) -> Sha256PrefixState
pub fn update(&mut self, chunk: &[u8])
pub fn digest_with_suffix(&self, suffix: &[u8]) -> [u8; 32]
pub fn digests_with_suffix(&self, first_suffix: &[u8]) -> SharedPrefixDigests
Auto Trait Implementations§
impl Freeze for Sha256PrefixState
impl RefUnwindSafe for Sha256PrefixState
impl Send for Sha256PrefixState
impl Sync for Sha256PrefixState
impl Unpin for Sha256PrefixState
impl UnsafeUnpin for Sha256PrefixState
impl UnwindSafe for Sha256PrefixState
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