summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2017-08-13 23:37:46 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2017-08-13 23:37:46 +0700
commit9d61825becef0428acbe30deb40ee3d4c730445f (patch)
tree31e8791ff394f6154c70caf0da9768b33aa10440
parentFix various issues trying to build for .NET 1.1 (diff)
downloadBouncyCastle.NET-ed25519-9d61825becef0428acbe30deb40ee3d4c730445f.tar.xz
Update GMacTest from Java
-rw-r--r--crypto/test/src/crypto/test/GMacTest.cs4
1 files changed, 4 insertions, 0 deletions
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);
             }