Type Alias Ripemd160

Source
pub type Ripemd160 = CoreWrapper<Ripemd160Core>;
Expand description

RIPEMD-160 hasher.

Aliased Type§

pub struct Ripemd160 { /* private fields */ }

Trait Implementations§

Source§

impl DigestExt<20> for Ripemd160

Source§

fn from_tag(tag: impl AsRef<[u8]>) -> Self

Initialize a diges with a given tag.
Source§

fn input_raw(&mut self, data: &[u8])

Digest raw byte slice.
Source§

fn finish(self) -> [u8; 20]

Compute the final cryptographic digest.
Source§

fn with_raw(self, data: &[u8]) -> Self
where Self: Sized,

Digest raw byte slice returning self.
Source§

fn with_len<const MAX: usize>(self, data: &[u8]) -> Self
where Self: Sized,

Digest bytes, adding the data length to the digest (preventing length extension attack). Read more
Source§

fn input_with_len<const MAX: usize>(&mut self, data: &[u8])

Digest bytes, adding the data length to the digest (preventing length extension attack).