summary refs log tree commit diff
path: root/crypto/src/crmf/EncryptedValueBuilder.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/crmf/EncryptedValueBuilder.cs')
-rw-r--r--crypto/src/crmf/EncryptedValueBuilder.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/crmf/EncryptedValueBuilder.cs b/crypto/src/crmf/EncryptedValueBuilder.cs
index 37f38df1c..3dca9e72c 100644
--- a/crypto/src/crmf/EncryptedValueBuilder.cs
+++ b/crypto/src/crmf/EncryptedValueBuilder.cs
@@ -111,7 +111,7 @@ namespace Org.BouncyCastle.Crmf
 
         private EncryptedValue EncryptData(byte[] data)
         {
-            MemoryOutputStream bOut = new MemoryOutputStream();
+            MemoryStream bOut = new MemoryStream();
             var cipher = encryptor.BuildCipher(bOut);
 
             try