calculateMacSync method

Mac calculateMacSync(
  1. List<int> cipherText, {
  2. required SecretKeyData secretKeyData,
  3. required List<int> nonce,
  4. List<int> aad = const <int>[],
})

Implementation

Mac calculateMacSync(
  List<int> cipherText, {
  required SecretKeyData secretKeyData,
  required List<int> nonce,
  List<int> aad = const <int>[],
}) {
  final sink = newMacSinkSync(
    secretKeyData: secretKeyData,
    nonce: nonce,
    aad: aad,
  );
  sink.add(cipherText);
  return sink.macSync();
}