Trait ethers::signers::yubihsm::asymmetric::signature::digest::DynDigest [−]
pub trait DynDigest {
fn update(&mut self, data: &[u8]);
fn finalize_reset(&mut self) -> Box<[u8], Global>;
fn finalize(self: Box<Self, Global>) -> Box<[u8], Global>;
fn reset(&mut self);
fn output_size(&self) -> usize;
fn box_clone(&self) -> Box<dyn DynDigest + 'static, Global>;
}
Expand description
The DynDigest
trait is a modification of Digest
trait suitable
for trait objects.
Required methods
Digest input data.
This method can be called repeatedly for use with streaming messages.
Retrieve result and consume boxed hasher instance
fn reset(&mut self)
fn reset(&mut self)
Reset hasher instance to its initial state.
fn output_size(&self) -> usize
fn output_size(&self) -> usize
Get output size of the hasher