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.

Inheritance

Constructors

HMAC.new(T algo)
const

Properties

algo → T
The algorithm for the MAC generation
final
hashCode int
The hash code for this object.
no setterinherited
name String
The name of this algorithm
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 a key 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 the message using a key.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited