hmacSha512 function
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);
}