summary refs log tree commit diff
path: root/crypto/src/cms
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-06-09 21:47:45 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-06-09 21:47:45 +0700
commitc5d6519a73201f74c30a1dd283afa3f2da9dc78b (patch)
treedbcddccfdf676809ba7d518a82134a54d394a227 /crypto/src/cms
parentNew PipeAll with explicit buffer size (diff)
downloadBouncyCastle.NET-ed25519-c5d6519a73201f74c30a1dd283afa3f2da9dc78b.tar.xz
Respect buffer size and use Streams
Diffstat (limited to 'crypto/src/cms')
-rw-r--r--crypto/src/cms/CMSProcessableFile.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/cms/CMSProcessableFile.cs b/crypto/src/cms/CMSProcessableFile.cs
index c74d2a846..486df1960 100644
--- a/crypto/src/cms/CMSProcessableFile.cs
+++ b/crypto/src/cms/CMSProcessableFile.cs
@@ -36,8 +36,8 @@ namespace Org.BouncyCastle.Cms
 
         public virtual void Write(Stream zOut)
 		{
-			Stream inStr = GetInputStream();
-			Streams.PipeAll(inStr, zOut);
+			Stream inStr = _file.OpenRead();
+            Streams.PipeAll(inStr, zOut, _bufSize);
             Platform.Dispose(inStr);
 		}