diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-06-09 21:47:45 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-06-09 21:47:45 +0700 |
commit | c5d6519a73201f74c30a1dd283afa3f2da9dc78b (patch) | |
tree | dbcddccfdf676809ba7d518a82134a54d394a227 /crypto/src | |
parent | New PipeAll with explicit buffer size (diff) | |
download | BouncyCastle.NET-ed25519-c5d6519a73201f74c30a1dd283afa3f2da9dc78b.tar.xz |
Respect buffer size and use Streams
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/cms/CMSProcessableFile.cs | 4 |
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); } |