summary refs log tree commit diff
path: root/crypto/src/asn1/ASN1StreamParser.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-11-22 15:22:28 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-11-22 15:22:28 +0700
commit2ee089e648a2aefe6d84244855b5c923b1496881 (patch)
tree89866bac74edd42edba77b26e0bb0b0dfa6aa337 /crypto/src/asn1/ASN1StreamParser.cs
parentPerf. opts. (diff)
downloadBouncyCastle.NET-ed25519-2ee089e648a2aefe6d84244855b5c923b1496881.tar.xz
Add BitString parsers
Diffstat (limited to 'crypto/src/asn1/ASN1StreamParser.cs')
-rw-r--r--crypto/src/asn1/ASN1StreamParser.cs16
1 files changed, 7 insertions, 9 deletions
diff --git a/crypto/src/asn1/ASN1StreamParser.cs b/crypto/src/asn1/ASN1StreamParser.cs
index 6128c9b78..3281310c0 100644
--- a/crypto/src/asn1/ASN1StreamParser.cs
+++ b/crypto/src/asn1/ASN1StreamParser.cs
@@ -130,9 +130,9 @@ namespace Org.BouncyCastle.Asn1
         {
             switch (univTagNo)
             {
-            // TODO[asn1] DLConstructedBitStringParser
-            //case Asn1Tags.BitString:
-            //    return new BerBitStringParser(this);
+            case Asn1Tags.BitString:
+                // TODO[asn1] DLConstructedBitStringParser
+                return new BerBitStringParser(this);
             case Asn1Tags.External:
                 return new DerExternalParser(this);
             case Asn1Tags.OctetString:
@@ -151,9 +151,8 @@ namespace Org.BouncyCastle.Asn1
         {
             switch (univTagNo)
             {
-            // TODO[asn1] BerBitStringParser
-            //case Asn1Tags.BitString:
-            //    return new BerBitStringParser(this);
+            case Asn1Tags.BitString:
+                return new BerBitStringParser(this);
             case Asn1Tags.External:
                 // TODO[asn1] BERExternalParser
                 return new DerExternalParser(this);
@@ -178,9 +177,8 @@ namespace Org.BouncyCastle.Asn1
             // Some primitive encodings can be handled by parsers too...
             switch (univTagNo)
             {
-            // TODO[asn1] DLBitStringParser
-            //case Asn1Tags.BitString:
-            //    return new DLBitStringParser(defIn);
+            case Asn1Tags.BitString:
+                return new DLBitStringParser(defIn);
             case Asn1Tags.External:
                 throw new Asn1Exception("externals must use constructed encoding (see X.690 8.18)");
             case Asn1Tags.OctetString: