Struct openssl::sha::Sha1 [−][src]
pub struct Sha1(_);
An object which calculates a SHA1 hash of some data.
Warning
SHA1 is known to be insecure - it should not be used unless required for compatibility with existing systems.
Methods
impl Sha1[src]
impl Sha1pub fn new() -> Sha1[src]
pub fn new() -> Sha1Creates a new hasher.
pub fn update(&mut self, buf: &[u8])[src]
pub fn update(&mut self, buf: &[u8])Feeds some data into the hasher.
This can be called multiple times.
pub fn finish(self) -> [u8; 20][src]
pub fn finish(self) -> [u8; 20]Returns the hash of the data.