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 Freeze for Context
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