HmacSigner constructor

HmacSigner(
  1. CoseAlg alg,
  2. Uint8List secret
)

Implementation

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