diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2017-08-13 23:37:46 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2017-08-13 23:37:46 +0700 |
commit | 9d61825becef0428acbe30deb40ee3d4c730445f (patch) | |
tree | 31e8791ff394f6154c70caf0da9768b33aa10440 | |
parent | Fix various issues trying to build for .NET 1.1 (diff) | |
download | BouncyCastle.NET-ed25519-9d61825becef0428acbe30deb40ee3d4c730445f.tar.xz |
Update GMacTest from Java
-rw-r--r-- | crypto/test/src/crypto/test/GMacTest.cs | 4 |
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); } |