public void TestAnsi99NoPad() { var data = StringUtil.HexStringToByteArray(_message2); var key = StringUtil.HexStringToByteArray(_key1); var expected = StringUtil.HexStringToByteArray("36611DBB2D0AC1E6"); var mac = new Ansi99MacGenerator(key).Generate(data); CollectionAssert.AreEqual(mac, expected); }
public void TestAnsi99Pad() { var data = StringUtil.HexStringToByteArray(_message1); var key = StringUtil.HexStringToByteArray(_key1); var expected = StringUtil.HexStringToByteArray("70A30640CC76DD8B"); var mac = new Ansi99MacGenerator(key).Generate(data); CollectionAssert.AreEqual(mac, expected); }