summary refs log tree commit diff
path: root/crypto/src/asn1/BerOctetString.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/BerOctetString.cs')
-rw-r--r--crypto/src/asn1/BerOctetString.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/src/asn1/BerOctetString.cs b/crypto/src/asn1/BerOctetString.cs
index 10d8d6db6..fd6b85be2 100644
--- a/crypto/src/asn1/BerOctetString.cs
+++ b/crypto/src/asn1/BerOctetString.cs
@@ -67,6 +67,14 @@ namespace Org.BouncyCastle.Asn1
         {
         }
 
+#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER
+        internal BerOctetString(ReadOnlySpan<byte> contents)
+            : base(contents)
+        {
+            this.elements = null;
+        }
+#endif
+
         private BerOctetString(byte[] contents, Asn1OctetString[] elements)
             : base(contents)
         {