示例#1
0
 static void DoAsserts(HashAlgorithm algorithm, byte[] data, TagHmac tag)
 {
     Assert.AreEqual(ILTagId.Hmac, tag.TagId);
     Assert.AreEqual(algorithm, tag.Algorithm);
     Assert.AreEqual(data.Length, tag.Data?.Length ?? 0);
     Assert.AreEqual(data, tag.Data);
 }
示例#2
0
 public bool Equals(TagHmac other) => (other is not null) && Algorithm == other.Algorithm && DataEquals(other.Data);