Expand description
Hash-based Message Authentication Code (HMAC) functionality.
Structs§
- Error
- Represents errors that occur when unknown algorithms are encountered.
Enums§
- Algorithm
- Represents hash algorithms used in HMACs.
Constants§
- HMAC_
ANY_ KEY_ LENGTH - HMAC accepts any key length.
- SHA1
- The
SHA1
literal. - SHA1_
LENGTH - The length of the SHA-1 hash.
- SHA256
sha2
- The
SHA256
literal. - SHA512
sha2
- The
SHA512
literal. - SHA256_
LENGTH sha2
- The length of the SHA-256 hash.
- SHA512_
LENGTH sha2
- The length of the SHA-512 hash.
Functions§
- hmac
- Computes the HMAC of the given data.
- hmac_
sha1 - Computes the HMAC using the SHA-1 algorithm.
- hmac_
sha256 sha2
- Computes the HMAC using the SHA-256 algorithm.
- hmac_
sha512 sha2
- Computes the HMAC using the SHA-512 algorithm.
- new_
hmac_ sha1 - Creates HMAC using the SHA-1 algorithm.
- new_
hmac_ sha256 sha2
- Creates HMAC using the SHA-256 algorithm.
- new_
hmac_ sha512 sha2
- Creates HMAC using the SHA-512 algorithm.
Type Aliases§
- Hmac
Sha1 - HMAC type using SHA-1.
- Hmac
Sha256 sha2
- HMAC type using SHA-256.
- Hmac
Sha512 sha2
- HMAC type using SHA-512.