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

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

Required methods

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

Update the hash with the given value.

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

Finalize the hash and return the result.

Loading content...

Implementors

impl Hasher for Md5Hasher[src]

impl Hasher for Ripemd160Hasher[src]

impl Hasher for Sha1Hasher[src]

impl Hasher for Sha2_224Hasher[src]

impl Hasher for Sha2_256Hasher[src]

impl Hasher for Sha2_384Hasher[src]

impl Hasher for Sha2_512Hasher[src]

impl Hasher for Sha3_256Hasher[src]

impl Hasher for Sha3_512Hasher[src]

Loading content...