From 5577cd5da173e2ba65b2f88980a2d7383a822750 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 21 Aug 2014 16:24:10 +0700 Subject: More TLS ported from Java API --- crypto/test/src/crypto/test/OCBTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/test') 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)]; -- cgit 1.5.1