Search results

There are no results.

std.crypto.hash.Hasher

Hasher

A cryptographic hasher.

Required methods

finish

Show source code
Hide source code
fn pub move finish -> Hash
fn pub move finish -> Hash

Generate a hash based on the current state.

write

Show source code
Hide 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

std.crypto.md5.

Md5

impl Hasher for Md5
std.crypto.poly1305.

Poly1305

impl Hasher for Poly1305
std.crypto.sha1.

Sha1

impl Hasher for Sha1
std.crypto.sha2.

Sha256

impl Hasher for Sha256
std.crypto.sha2.

Sha512

impl Hasher for Sha512