CryptoAuth class
Computes an authentication tag for a message and a secret key, and provides a way to verify that a given tag is valid for a given message and a key.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
compute(
Uint8List value, Uint8List key) → Uint8List - Computes a tag for given value and key.
-
computeString(
String value, Uint8List key) → Uint8List - Computes a tag for given string value and key.
-
randomKey(
) → Uint8List - Generates a random key for use with authentication.
-
verify(
Uint8List tag, Uint8List value, Uint8List key) → bool - Verifies that the tag is valid for given value and key.
-
verifyString(
Uint8List tag, String value, Uint8List key) → bool - Verifies that the tag is valid for given string value and key.