summary refs log tree commit diff
path: root/crypto/src/bcpg
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-10-18 01:39:56 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-10-18 01:39:56 +0700
commit414380883367c5bb2d250da5937f44f742cba281 (patch)
tree19c82f09c3f6eca73085bf1bc0a953e026dde71b /crypto/src/bcpg
parent.NET 1.1 fixes (diff)
downloadBouncyCastle.NET-ed25519-414380883367c5bb2d250da5937f44f742cba281.tar.xz
PORTABLE fixes
Diffstat (limited to 'crypto/src/bcpg')
-rw-r--r--crypto/src/bcpg/BcpgInputStream.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/src/bcpg/BcpgInputStream.cs b/crypto/src/bcpg/BcpgInputStream.cs
index 38b5382ad..5efef193a 100644
--- a/crypto/src/bcpg/BcpgInputStream.cs
+++ b/crypto/src/bcpg/BcpgInputStream.cs
@@ -196,7 +196,12 @@ namespace Org.BouncyCastle.Bcpg
             else
             {
                 PartialInputStream pis = new PartialInputStream(this, partial, bodyLen);
-                objStream = new BcpgInputStream(new BufferedStream(pis));
+#if NETCF_1_0 || NETCF_2_0 || SILVERLIGHT || PORTABLE
+                Stream buf = pis;
+#else
+				Stream buf = new BufferedStream(pis);
+#endif
+                objStream = new BcpgInputStream(buf);
             }
 
             switch (tag)