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); }
public bool Equals(TagHmac other) => (other is not null) && Algorithm == other.Algorithm && DataEquals(other.Data);