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(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
messageusing akeyto 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
tagis derived from themessageusing akey.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited