hmacSha512Hash static method

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

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

Implementation

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