pub trait DigestContext: Send {
// Required methods
fn update(&mut self, data: &[u8]);
fn finish(&mut self) -> Result<&[u8]>;
}Available on crate feature
cloud-base and (crate features aws-base or azure-base or gcp-base) only.Expand description
Incrementally compute a digest, see CryptoProvider::digest
Required Methods§
Sourcefn update(&mut self, data: &[u8])
fn update(&mut self, data: &[u8])
Updates the digest with all the data in data.
It is implementation-defined behaviour to call this after calling Self::finish
Sourcefn finish(&mut self) -> Result<&[u8]>
fn finish(&mut self) -> Result<&[u8]>
Finalizes the digest calculation and returns the digest value.
It is implementation-defined behaviour to call this after calling Self::finish
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".