[−][src]Trait rcrypto::Digest
A trait for message digest algorithm used in the cryptography
Required methods
fn block_size(&self) -> Option<usize>
used for HMAC, None
means that the digest algorithm doesn't support used in the HMAC.
fn bits_len(&self) -> usize
the digest length(in bits)
fn write(&mut self, data: &[u8])
write byte data to the Digester
fn checksum(&mut self, digest: &mut Vec<u8>)
compute the checksum for all data in the digester, the checksum will be same
if no new data write to the digester
fn reset(&mut self)
reset internal state of the Digester to the init state