DartHmac class

An implementation of Hmac in pure Dart.

Inheritance
Mixed-in types

Constructors

DartHmac(HashAlgorithm hashAlgorithm)
const

Properties

hashAlgorithm HashAlgorithm
Hash algorithm used by this HMAC.
final
hashCode int
The hash code for this object.
no setterinherited
macLength int
Number of bytes in the message authentication code.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportsAad bool
Whether the algorithm supports Associated Authenticated Data (AAD).
no setterinherited

Methods

calculateMac(List<int> bytes, {required SecretKey secretKey, List<int> nonce = const <int>[], List<int> aad = const <int>[]}) Future<Mac>
Calculates message authentication code.
override
calculateMacSync(List<int> input, {required SecretKeyData secretKeyData, List<int> nonce = const <int>[], List<int> aad = const <int>[]}) Mac
Synchronous version of calculateMac.
override
newMacSink({required SecretKey secretKey, List<int> nonce = const <int>[], List<int> aad = const <int>[]}) Future<MacSink>
Constructs a sink for calculating a Mac.
override
newMacSinkSync({required SecretKeyData secretKeyData, List<int> nonce = const <int>[], List<int> aad = const <int>[]}) DartMacSink
override
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