std.crypto.hash.Hasher
Hasher
A cryptographic hasher.
Required methods
finish
Show source codeHide source code
fn pub move finish -> Hash
fn pub move finish -> Hash
Generate a hash based on the current state.
write
Show source codeHide source code
fn pub mut write(bytes: ref ByteArray)
fn pub mut write(bytes: ref ByteArray)
Writes the bytes into the hasher.
This method is free to modify bytes
if needed, so no assumption should be
made about its contents after this method returns. If you're reusing the
same ByteArray
for multiple calls to write
, you should clear the
ByteArray
after each call.
Implementations
Md5
impl Hasher for Md5
Poly1305
impl Hasher for Poly1305
Sha1
impl Hasher for Sha1
Sha256
impl Hasher for Sha256
Sha512
impl Hasher for Sha512