compute static method
Computes HMAC-SHA256(key, data) and returns a 32-byte tag.
key
: secret key bytes (any length; will be normalized).
data
: input bytes; recommend passing Uint8List
to avoid extra copies.
HINT: For single-part input; see computeParts
for multi-part.
Implementation
static Uint8List compute(Uint8List key, Uint8List data) {
return computeParts(key, [data]);
}