Expand description
HMAC
This crate implements HMAC on SHA 1 and SHA 2 (except for SHA 224).
Enums§
- Algorithm
- The HMAC algorithm defining the used hash function.
Functions§
- hmac
- Compute the HMAC value with the given
algandkeyondatawith an output tag length oftag_length. Returns a vector of lengthtag_length. Panics if eitherkeyordataare longer thanu32::MAX. - hmac_
sha1 - Compute HMAC.
- hmac_
sha2_ 256 - Compute HMAC.
- hmac_
sha2_ 384 - Compute HMAC.
- hmac_
sha2_ 512 - Compute HMAC.
- tag_
size - Get the tag size for a given algorithm.