summary refs log tree commit diff
path: root/crypto/src/asn1/x509/AltSignatureValue.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/x509/AltSignatureValue.cs')
-rw-r--r--crypto/src/asn1/x509/AltSignatureValue.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/crypto/src/asn1/x509/AltSignatureValue.cs b/crypto/src/asn1/x509/AltSignatureValue.cs
index 498c1d6d0..a46301e33 100644
--- a/crypto/src/asn1/x509/AltSignatureValue.cs
+++ b/crypto/src/asn1/x509/AltSignatureValue.cs
@@ -60,11 +60,15 @@ namespace Org.BouncyCastle.Asn1.X509
             m_signature = new DerBitString(signature);
         }
 
-        public DerBitString Signature => m_signature;
-
-        public override Asn1Object ToAsn1Object()
+#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER
+        public AltSignatureValue(ReadOnlySpan<byte> signature)
         {
-            return m_signature;
+            m_signature = new DerBitString(signature);
         }
+#endif
+
+        public DerBitString Signature => m_signature;
+
+        public override Asn1Object ToAsn1Object() => m_signature;
     }
 }