HmacSigner constructor
alg must be CoseAlg.hmac256x64 or CoseAlg.hmac256x256.
Implementation
HmacSigner(this.alg, Uint8List secret) : secret = Uint8List.fromList(secret) {
if (!alg.isHmac) {
throw ArgumentError.value(alg, 'alg', 'must be an HMAC algorithm');
}
}