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_MAC accepts for HMAC.
factory

Properties

digest → String
OpenSSL digest name, e.g. SHA2-256.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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 tag against the tag over data.

Operators

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