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