Trait pgp::crypto::hash::Hasher[][src]

pub trait Hasher: Write {
    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>.

Required methods

Update the hash with the given value.

Finalize the hash and return the result.

Implementors