Exemple #1
0
 public void TestSha256(string keyStr, string messageHex, string expected)
 {
     using var hmac = HmacUtils.Create(DigestType.Sha256, keyStr.FromHex());
     Assert.AreEqual(@"HMAC-SHA-256", hmac.Name);
     TestUtils.MacTest(hmac, messageHex.FromHex(), expected);
 }