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.
Panic
Panics if update causes total input length to exceed maximum allowed (u64::MAX).