pub trait Hasher: Write { fn update(&mut self, _: &[u8]); fn finish(self: Box<Self>) -> Vec<u8>; }
Trait to work around the fact that the Digest trait from rustcrypto can not be used as Box<Digest>.
Digest
Box<Digest>
Update the hash with the given value.
Finalize the hash and return the result.