hmacsha256Hash static method

List<int> hmacsha256Hash(
  1. List<int> key,
  2. List<int> data
)

Calculate the HMAC-SHA-256 hash of the input data using the provided key

Implementation

static List<int> hmacsha256Hash(List<int> key, List<int> data) {
  final hm = HMAC(() => SHA256(), key);
  hm.update(data);
  return hm.digest();
}