diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-08-21 16:24:10 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-08-21 16:24:10 +0700 |
commit | 5577cd5da173e2ba65b2f88980a2d7383a822750 (patch) | |
tree | 9f93476870062a143b2f6effc6acce5305228a96 /crypto/test | |
parent | A few minor followups to the previous batch of TLS updates (diff) | |
download | BouncyCastle.NET-ed25519-5577cd5da173e2ba65b2f88980a2d7383a822750.tar.xz |
More TLS ported from Java API
Diffstat (limited to 'crypto/test')
-rw-r--r-- | crypto/test/src/crypto/test/OCBTest.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/test/src/crypto/test/OCBTest.cs b/crypto/test/src/crypto/test/OCBTest.cs index f2476f6d5..9f898fbe2 100644 --- a/crypto/test/src/crypto/test/OCBTest.cs +++ b/crypto/test/src/crypto/test/OCBTest.cs @@ -211,7 +211,7 @@ namespace Org.BouncyCastle.Crypto.Tests private void CheckTestCase(IAeadBlockCipher encCipher, IAeadBlockCipher decCipher, string testName, int macLengthBytes, byte[] P, byte[] C) { - byte[] tag = Arrays.Copy(C, C.Length - macLengthBytes, macLengthBytes); + byte[] tag = Arrays.CopyOfRange(C, C.Length - macLengthBytes, C.Length); { byte[] enc = new byte[encCipher.GetOutputSize(P.Length)]; |