summary refs log tree commit diff
path: root/crypto/src/asn1/Asn1InputStream.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-11-08 20:14:47 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-11-08 20:14:47 +0700
commit2f23f0acb5dba40ed9fb7e9d340c0dfaf3db035b (patch)
tree99ea424d4c8718f8db82a945d082c5f0f9e49bc8 /crypto/src/asn1/Asn1InputStream.cs
parentASN.1 refactoring (diff)
downloadBouncyCastle.NET-ed25519-2f23f0acb5dba40ed9fb7e9d340c0dfaf3db035b.tar.xz
Lazy ASN.1 enumeration and refactoring
Diffstat (limited to 'crypto/src/asn1/Asn1InputStream.cs')
-rw-r--r--crypto/src/asn1/Asn1InputStream.cs10
1 files changed, 4 insertions, 6 deletions
diff --git a/crypto/src/asn1/Asn1InputStream.cs b/crypto/src/asn1/Asn1InputStream.cs
index 935568550..4cca8aaf5 100644
--- a/crypto/src/asn1/Asn1InputStream.cs
+++ b/crypto/src/asn1/Asn1InputStream.cs
@@ -109,9 +109,9 @@ namespace Org.BouncyCastle.Asn1
                 return BuildConstructedOctetString(ReadVector(defIn));
             }
             case Asn1Tags.Sequence:
-                return CreateDerSequence(defIn);
+                return CreateDLSequence(defIn);
             case Asn1Tags.Set:
-                return CreateDerSet(defIn);
+                return CreateDLSet(defIn);
             case Asn1Tags.External:
                 return new DerExternal(ReadVector(defIn));                
             default:
@@ -143,14 +143,12 @@ namespace Org.BouncyCastle.Asn1
             return new Asn1InputStream(defIn, remaining, tmpBuffers).ReadVector();
         }
 
-        internal virtual DerSequence CreateDerSequence(
-            DefiniteLengthInputStream dIn)
+        internal virtual DerSequence CreateDLSequence(DefiniteLengthInputStream dIn)
         {
             return DerSequence.FromVector(ReadVector(dIn));
         }
 
-        internal virtual DerSet CreateDerSet(
-            DefiniteLengthInputStream dIn)
+        internal virtual DerSet CreateDLSet(DefiniteLengthInputStream dIn)
         {
             return DerSet.FromVector(ReadVector(dIn), false);
         }