From f25f7bed6807096d9a67d31f547398c1f6f213e4 Mon Sep 17 00:00:00 2001 From: David Hook Date: Tue, 15 Jan 2019 11:01:18 +1100 Subject: first cut on Pkcs8 --- crypto/src/util/io/MemoryInputStream.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 crypto/src/util/io/MemoryInputStream.cs (limited to 'crypto/src/util/io/MemoryInputStream.cs') diff --git a/crypto/src/util/io/MemoryInputStream.cs b/crypto/src/util/io/MemoryInputStream.cs new file mode 100644 index 000000000..d353314ee --- /dev/null +++ b/crypto/src/util/io/MemoryInputStream.cs @@ -0,0 +1,13 @@ +using System.IO; + +namespace Org.BouncyCastle.Utilities.IO +{ + public class MemoryInputStream : MemoryStream + { + public MemoryInputStream(byte[] buffer) : base(buffer, false) + { + } + + public sealed override bool CanWrite { get { return false; } } + } +} -- cgit 1.5.1