HMAC<T extends BlockHashBase<BlockHashSink> > class
HMAC is a hash-based message authentication code that can be used to simultaneously verify both the data integrity and authenticity of a message.
Constructors
- HMAC.new(T algo)
-
const
Properties
Methods
-
by(
List< int> key) → MACHashBase<HMACSink< T> > -
Get a MACHashBase instance initialized by a
key
.override -
byString(
String key, [Encoding? encoding]) → MACHashBase< HMACSink< T> > -
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