tomSecretsChallengeMac function
The MAC of label over the challenge under adminKey.
Implementation
Uint8List tomSecretsChallengeMac(
List<int> adminKey,
String label,
List<int> serviceNonce,
List<int> adminNonce,
int serviceStart,
) => Uint8List.fromList(
crypto.Hmac(crypto.sha256, adminKey)
.convert(
tomSecretsChallengeInput(label, serviceNonce, adminNonce, serviceStart),
)
.bytes,
);