Trait pgp::crypto::hash::Hasher

source ·
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>.

Required Methods§

source

fn update(&mut self, _: &[u8])

Update the hash with the given value.

source

fn finish(self: Box<Self>) -> Vec<u8>

Finalize the hash and return the result.

Implementors§