hmacsha256Hash static method
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);
try {
hm.update(data);
return hm.digest();
} finally {
hm.clean();
}
}