Hmac constructor

Hmac(
  1. HashAlgorithm hashAlgorithm
)

Constructs HMAC with any hash algorithm.

Implementation

factory Hmac(HashAlgorithm hashAlgorithm) {
  return Cryptography.instance.hmac(hashAlgorithm);
}