Module hmac

Source
Expand description

HMAC

This module 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 alg and key on data with an output tag length of tag_length. Returns a vector of length tag_length.
tag_size
Get the tag size for a given algorithm.