summary refs log tree commit diff
path: root/crypto/src/util/io/Streams.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-10-20 18:23:49 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-10-20 18:23:49 +0700
commit1a2ca44e3fa181180e9aa65692a55111c32353f1 (patch)
treee6af5a363b8fb35ad094dc0d5a6d7d9dde16a78d /crypto/src/util/io/Streams.cs
parentAdd Inverse64 method (diff)
downloadBouncyCastle.NET-ed25519-1a2ca44e3fa181180e9aa65692a55111c32353f1.tar.xz
Fix BinaryReader usage in Pqc.Crypto.Lms
Diffstat (limited to 'crypto/src/util/io/Streams.cs')
-rw-r--r--crypto/src/util/io/Streams.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/src/util/io/Streams.cs b/crypto/src/util/io/Streams.cs
index ac4bd3ae6..da8f01068 100644
--- a/crypto/src/util/io/Streams.cs
+++ b/crypto/src/util/io/Streams.cs
@@ -60,7 +60,12 @@ namespace Org.BouncyCastle.Utilities.IO
 			return buf.ToArray();
 		}
 
-		public static byte[] ReadAllLimited(Stream inStr, int limit)
+        public static byte[] ReadAll(MemoryStream inStr)
+        {
+			return inStr.ToArray();
+        }
+
+        public static byte[] ReadAllLimited(Stream inStr, int limit)
 		{
 			MemoryStream buf = new MemoryStream();
 			PipeAllLimited(inStr, limit, buf);