check method
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;
}