hmacSha256Sync function

Uint8List hmacSha256Sync(
  1. Uint8List hmacKey,
  2. Uint8List data
)

Implementation

Uint8List hmacSha256Sync(Uint8List hmacKey, Uint8List data) {
  final hmac = HMac(SHA256Digest(), 64)
    ..init(KeyParameter(hmacKey));

  return hmac.process(data);
}