pub struct Sha1 { priv h: [u32, ..DIGEST_BUF_LEN], priv length_bits: u64, priv buffer: FixedBuffer64, priv computed: bool, }
Structure representing the state of a Sha1 computation
impl Sha1
fn new() -> Sha1
Construct a sha
object
impl Digest for Sha1
fn reset(&mut self)
Reset the digest. This method must be called after result() and before supplying more data.
fn input(&mut self, msg: &[u8])
Provide message data.
fn result(&mut self, out: &mut [u8])
Retrieve the digest result. This method may be called multiple times.
fn output_bits(&self) -> uint
Get the output size in bits.
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).