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