Structs§
- Sha224
- use it if we want to use hacl
- Sha256
- use it if we want to use hacl
- Sha384
- use it if we want to use hacl
- Sha512
- use it if we want to use hacl
- Sha224
Hash - A struct that implements
libcrux_traits::digesttraits. - Sha256
Hash - A struct that implements
libcrux_traits::digesttraits. - Sha384
Hash - A struct that implements
libcrux_traits::digesttraits. - Sha512
Hash - A struct that implements
libcrux_traits::digesttraits.
Enums§
- Algorithm
- use it if we want to use hacl The different Sha2 algorithms.
Constants§
- SHA224_
LENGTH - The length of a SHA224 hash in bytes.
- SHA256_
LENGTH - The length of a SHA256 hash in bytes.
- SHA384_
LENGTH - The length of a SHA384 hash in bytes.
- SHA512_
LENGTH - The length of a SHA512 hash in bytes.
Traits§
- Digest
- Re-export the
Digesttrait. A Hash algorithm returning hashes of lengthHASH_LEN.
Functions§
- sha224
- use it if we want to use hacl
SHA2 224
Will panic if
payloadis longer thanu32::MAXto ensure that hacl-rs can process it. - sha256
- use it if we want to use hacl
SHA2 256
Will panic if
payloadis longer thanu32::MAXto ensure that hacl-rs can process it. - sha384
- use it if we want to use hacl
SHA2 384
Will panic if
payloadis longer thanu32::MAXto ensure that hacl-rs can process it. - sha512
- use it if we want to use hacl
SHA2 512
Will panic if
payloadis longer thanu32::MAXto ensure that hacl-rs can process it.
Type Aliases§
- Sha224
Hasher - A hasher for
Sha224Hash. - Sha256
Hasher - A hasher for
Sha256Hash. - Sha384
Hasher - A hasher for
Sha384Hash. - Sha512
Hasher - A hasher for
Sha512Hash.