OnetimeAuth class
Secret-key single-message authentication using Poly1305.
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.
-
computeStrings(
Stream< String> stream, Uint8List key) → Future<Uint8List> -
randomKey(
) → Uint8List - Generates a random key for use in onetime 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.