Module digest

Source
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§

Sha2_224
Sha2_256
Sha2_384
Sha2_512

Enums§

Algorithm
The Digest Algorithm.
Error

Functions§

digest_size
Returns the output size of a digest.
hash
Create the digest for the given data and mode alg. 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

Type Aliases§

Sha2_224Digest
Sha2_256Digest
Sha2_384Digest
Sha2_512Digest
Sha3_224Digest
Sha3_256Digest
Sha3_384Digest
Sha3_512Digest