Expand description
Hashing functions.
This module is gated by full-crypto
feature. If you intend to use any of the functions
defined here within your runtime, you should most likely rather use [tet_io::hashing] instead,
unless you know what you’re doing. Using tet_io
will be more performant, since instead of
computing the hash in WASM it delegates that computation to the host client.
Functions§
- blake2_
64 - Do a Blake2 64-bit hash and return result.
- blake2_
64_ into - Do a Blake2 64-bit hash and place result in
dest
. - blake2_
128 - Do a Blake2 128-bit hash and return result.
- blake2_
256 - Do a Blake2 256-bit hash and return result.
- blake2_
512 - Do a Blake2 512-bit hash and return result.
- blake2_
128_ into - Do a Blake2 128-bit hash and place result in
dest
. - blake2_
256_ into - Do a Blake2 256-bit hash and place result in
dest
. - blake2_
512_ into - Do a Blake2 512-bit hash and place result in
dest
. - keccak_
256 - Do a keccak 256-bit hash and return result.
- keccak_
512 - Do a keccak 512-bit hash and return result.
- sha2_
256 - Do a sha2 256-bit hash and return result.
- twox_64
- Do a XX 64-bit hash and return result.
- twox_
64_ into - Do a XX 64-bit hash and place result in
dest
. - twox_
128 - Do a XX 128-bit hash and return result.
- twox_
256 - Do a XX 256-bit hash and return result.
- twox_
128_ into - Do a XX 128-bit hash and place result in
dest
. - twox_
256_ into - Do a XX 256-bit hash and place result in
dest
.