summary refs log tree commit diff
path: root/crypto/src/asn1/DLBitString.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/DLBitString.cs')
-rw-r--r--crypto/src/asn1/DLBitString.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/crypto/src/asn1/DLBitString.cs b/crypto/src/asn1/DLBitString.cs
index 5d8f3ac5e..624b8bb56 100644
--- a/crypto/src/asn1/DLBitString.cs
+++ b/crypto/src/asn1/DLBitString.cs
@@ -21,6 +21,18 @@ namespace Org.BouncyCastle.Asn1
         {
         }
 
+#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER
+        public DLBitString(ReadOnlySpan<byte> data)
+            : this(data, 0)
+        {
+        }
+
+        public DLBitString(ReadOnlySpan<byte> data, int padBits)
+            : base(data, padBits)
+        {
+        }
+#endif
+
         public DLBitString(int namedBits)
             : base(namedBits)
         {