Blake2sMAC class
A MAC generator based on Blake2s algorithm.
- Inheritance
-
- Object
- MACHash<
Blake2sHash> - Blake2sMAC
Constructors
- Blake2sMAC.new(int digestSize)
-
Creates an instance to generate MAC using BLAKE-2s algorithm.
const
Properties
- digestSize → int
-
The number of bytes in the output.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of this algorithm
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
by(
List< int> key, {List<int> ? salt, List<int> ? aad}) → MACHashBase<Blake2sHash> -
Get an MACHashBase instance initialized by a
key
.override -
byString(
String key, [Encoding? encoding]) → MACHashBase< Blake2sHash> -
Get a MACHashBase instance initialized by a string
key
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sign(
List< int> key, List<int> message) → HashDigest -
Signing the
message
using akey
to generate a tag.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
verify(
List< int> key, List<int> tag, List<int> message) → bool -
Verify if the
tag
is derived from themessage
using akey
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited