check method

bool check({
  1. required Uint8List plain,
  2. required Uint8List hashed,
  3. required Uint8List iv,
})

Check if plaintext matches previously hashed text

Implementation

bool check(
    {required Uint8List plain,
    required Uint8List hashed,
    required Uint8List iv}) {
  if (_type == MacType.Poly1305) {
    return _mac.check(plain, hashed, iv: iv) as bool;
  }
  return _mac.check(plain, hashed) as bool;
}