private void testSingleByte(IMac mac, TestCase testCase) { byte[] ad = testCase.getAd(); for (int i = 0; i < ad.Length; i++) { mac.Update(ad[i]); } checkMac(mac, testCase); }
private void testMultibyte(IMac mac, TestCase testCase) { mac.BlockUpdate(testCase.getAd(), 0, testCase.getAd().Length); checkMac(mac, testCase); }