hmacSHA512 function

Uint8List hmacSHA512(
  1. Uint8List key,
  2. Uint8List data
)

This is the method that we are using to generate the hmac used in deriving the mac

Implementation

Uint8List hmacSHA512(Uint8List key, Uint8List data) {
  final _tmp = HMac(SHA512Digest(), 128)..init(KeyParameter(key));
  return _tmp.process(data);
}