summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-11-06 16:49:01 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-11-06 16:49:01 +0700
commitf95bf7d8236238258a8a882450c04546ffc79aa1 (patch)
tree20d712305a7ab8200a889b98c01965777182d510
parentAdd Asn1ObjectDescriptor (diff)
downloadBouncyCastle.NET-ed25519-f95bf7d8236238258a8a882450c04546ffc79aa1.tar.xz
Support parsing of Asn1ObjectDescriptor
-rw-r--r--crypto/src/asn1/Asn1InputStream.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/src/asn1/Asn1InputStream.cs b/crypto/src/asn1/Asn1InputStream.cs
index f00bc6ef6..935568550 100644
--- a/crypto/src/asn1/Asn1InputStream.cs
+++ b/crypto/src/asn1/Asn1InputStream.cs
@@ -448,6 +448,8 @@ namespace Org.BouncyCastle.Asn1
                 }
                 case Asn1Tags.NumericString:
                     return new DerNumericString(bytes);
+                case Asn1Tags.ObjectDescriptor:
+                    return Asn1ObjectDescriptor.CreatePrimitive(bytes);
                 case Asn1Tags.OctetString:
                     return new DerOctetString(bytes);
                 case Asn1Tags.PrintableString: