summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--crypto/test/src/cms/test/AuthenticatedDataStreamTest.cs11
1 files changed, 5 insertions, 6 deletions
diff --git a/crypto/test/src/cms/test/AuthenticatedDataStreamTest.cs b/crypto/test/src/cms/test/AuthenticatedDataStreamTest.cs
index 89a2174b7..68f38d190 100644
--- a/crypto/test/src/cms/test/AuthenticatedDataStreamTest.cs
+++ b/crypto/test/src/cms/test/AuthenticatedDataStreamTest.cs
@@ -72,14 +72,13 @@ namespace Org.BouncyCastle.Cms.Tests
 		[Test]
 		public void TestKeyTransDESede()
 		{
-			tryKeyTrans(CmsAuthenticatedDataGenerator.DesEde3Cbc);
-		}
+            tryKeyTrans(Encoding.ASCII.GetBytes("Eric H. Echidna"), CmsEnvelopedGenerator.DesEde3Cbc);
+            // force multiple octet-string
+            tryKeyTrans(new byte[2500], CmsEnvelopedGenerator.DesEde3Cbc);
+        }
 
-		private void tryKeyTrans(
-			string macAlg)
+		private void tryKeyTrans(byte[] data, string macAlg)
 		{
-			byte[] data = Encoding.ASCII.GetBytes("Eric H. Echidna");
-
 			CmsAuthenticatedDataStreamGenerator adGen = new CmsAuthenticatedDataStreamGenerator();
 
 			adGen.AddKeyTransRecipient(ReciCert);