pub struct Context { /* private fields */ }Expand description
A context for multi-step (Init-Update-Finish) digest calculations.
Implementations§
source§impl Context
impl Context
sourcepub fn new(algorithm: &'static Algorithm) -> Self
pub fn new(algorithm: &'static Algorithm) -> Self
Constructs a new context.
§Panics
new panics if it fails to initialize an aws-lc digest context for the given
algorithm.
sourcepub fn update(&mut self, data: &[u8])
pub fn update(&mut self, data: &[u8])
Updates the message to digest with all the data in data.
§Panics
Panics if update causes total input length to exceed maximum allowed (u64::MAX).
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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