Expand description
§Hashing
Depending on the platform and available features the most efficient implementation is chosen.
§SHA 2
The HACL streaming implementations are used for all SHA2 variants on all platforms.
§SHA 3
The portable HACL implementations are used unless running on an x64 CPU. On x64 CPUs the libjade implementation is used and if AVX2 is available, the optimised libjade implementation is used.
Structs§
Enums§
Functions§
- digest_
size - Returns the output size of a digest.
- hash
- Create the digest for the given
data
and modealg
. The output has length [digest_size(alg)
], i.e. blake2 returns a full-sized digest. - sha2_
224 - SHA2 224
- sha2_
256 - SHA2 256
- sha2_
384 - SHA2 384
- sha2_
512 - SHA2 512
- sha3_
224 - sha3_
256 - sha3_
384 - sha3_
512 - shake128
- SHAKE 128
- shake256
- SHAKE 256