MacCryptRaw class
Class containing hashing for Message Authentication Codes.
This version of MacCrypt is raw, meaning that it expects all inputs to be Uint8List, and returns Uint8Lists.
Constructors
- MacCryptRaw({required Uint8List key, required MacType type, HmacHash? algorithm})
- MacCryptRaw.CMAC({required Uint8List key})
- MacCryptRaw.HMAC({required Uint8List key, required HmacHash mode})
- MacCryptRaw.Poly1305({required Uint8List key})
Properties
Methods
-
check(
{required Uint8List plain, required Uint8List hashed, required Uint8List iv}) → bool - Check if plaintext matches previously hashed text
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
process(
{required Uint8List inp, required Uint8List iv}) → Uint8List - Process and hash string.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited