diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-20 18:23:49 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-20 18:23:49 +0700 |
commit | 1a2ca44e3fa181180e9aa65692a55111c32353f1 (patch) | |
tree | e6af5a363b8fb35ad094dc0d5a6d7d9dde16a78d /crypto/src/util | |
parent | Add Inverse64 method (diff) | |
download | BouncyCastle.NET-ed25519-1a2ca44e3fa181180e9aa65692a55111c32353f1.tar.xz |
Fix BinaryReader usage in Pqc.Crypto.Lms
Diffstat (limited to 'crypto/src/util')
-rw-r--r-- | crypto/src/util/io/Streams.cs | 7 |
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); |