hmacSha512 function

Uint8List hmacSha512(
  1. Uint8List hmacKey,
  2. Uint8List data
)

Implementation

Uint8List hmacSha512(Uint8List hmacKey, Uint8List data) {
  final hmac = HMac(SHA512Digest(), 128)
    ..init(KeyParameter(hmacKey));

  return hmac.process(data);
}