pub trait Hasher: Write {
// Required methods
fn update(&mut self, _: &[u8]);
fn finish(self: Box<Self>) -> Vec<u8> ⓘ;
}
Expand description
Trait to work around the fact that the Digest
trait from rustcrypto can not
be used as Box<Digest>
.