hmacSha512 function

Uint8List hmacSha512(
  1. Uint8List key,
  2. Uint8List message
)

This function returns a list of length 64. The first half is the key, the second half is the chain code.

Implementation

Uint8List hmacSha512(Uint8List key, Uint8List message) {
  var hmac = HMac(sha512digest, 128)..init(KeyParameter(key));
  return hmac.process(message);
}