From 9d61825becef0428acbe30deb40ee3d4c730445f Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sun, 13 Aug 2017 23:37:46 +0700 Subject: Update GMacTest from Java --- crypto/test/src/crypto/test/GMacTest.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crypto') diff --git a/crypto/test/src/crypto/test/GMacTest.cs b/crypto/test/src/crypto/test/GMacTest.cs index 62088b976..0b37e1a03 100644 --- a/crypto/test/src/crypto/test/GMacTest.cs +++ b/crypto/test/src/crypto/test/GMacTest.cs @@ -112,6 +112,10 @@ namespace Org.BouncyCastle.Crypto.Tests mac.Init(new ParametersWithIV(key, testCase.getIv())); testSingleByte(mac, testCase); + + mac = new GMac(new GcmBlockCipher(new AesEngine()), testCase.getTag().Length * 8); + mac.Init(new ParametersWithIV(key, testCase.getIv())); + testMultibyte(mac, testCase); } -- cgit 1.4.1