Hmac class final
HMAC with a SHA-2 digest, keyed once and reusable.
Constructors
-
Hmac.sha256(List<
int> key) -
factory
-
Hmac.sha384(List<
int> key) -
factory
-
Hmac.sha512(List<
int> key) -
factory
-
Hmac.withDigest(String digest, List<
int> key) -
Any digest
EVP_MACaccepts for HMAC.factory
Properties
Methods
-
compute(
List< int> data) → Uint8List -
The tag over
data. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
verify(
List< int> data, List<int> tag) → bool -
Constant-time comparison of
tagagainst the tag overdata.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited