Crate libcrux_sha2
Source - 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
- Algorithm
- use it if we want to use hacl
The different Sha2 algorithms.
- 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.
- Digest
- Re-export the
Digest trait.
A Hash algorithm returning hashes of length HASH_LEN.
- sha224
- use it if we want to use hacl
SHA2 224
Will panic if
payload is longer than u32::MAX to ensure that hacl-rs can
process it. - sha256
- use it if we want to use hacl
SHA2 256
Will panic if
payload is longer than u32::MAX to ensure that hacl-rs can
process it. - sha384
- use it if we want to use hacl
SHA2 384
Will panic if
payload is longer than u32::MAX to ensure that hacl-rs can
process it. - sha512
- use it if we want to use hacl
SHA2 512
Will panic if
payload is longer than u32::MAX to ensure that hacl-rs can
process it.