summary refs log tree commit diff
path: root/crypto/src/asn1/LazyDLSet.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-11-09 23:37:08 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-11-09 23:37:08 +0700
commit3c034ea8ac68da52b5ff128300b6780549d05bd1 (patch)
treea3f4572beee014d784560c0ba1282a4000e1a98a /crypto/src/asn1/LazyDLSet.cs
parentFix DER encoding of lazy objects (diff)
downloadBouncyCastle.NET-ed25519-3c034ea8ac68da52b5ff128300b6780549d05bd1.tar.xz
Add DLSequence, DLSet for internal use
- improve sorting of sets
Diffstat (limited to '')
-rw-r--r--crypto/src/asn1/LazyDLSet.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/src/asn1/LazyDLSet.cs b/crypto/src/asn1/LazyDLSet.cs
index 0d4d84310..bdee0bc22 100644
--- a/crypto/src/asn1/LazyDLSet.cs
+++ b/crypto/src/asn1/LazyDLSet.cs
@@ -5,7 +5,7 @@ using System.IO;
 namespace Org.BouncyCastle.Asn1
 {
     internal class LazyDLSet
-        : DerSet
+        : DLSet
     {
         private byte[] encoded;
 
@@ -106,6 +106,7 @@ namespace Org.BouncyCastle.Asn1
                         Asn1EncodableVector v = input.ReadVector();
 
                         this.elements = v.TakeElements();
+                        this.isSorted = elements.Length < 2;
                         this.encoded = null;
                     }
                     catch (IOException e)