summary refs log tree commit diff
path: root/crypto/src/asn1/ConstructedLazyDLEncoding.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-03-07 16:03:07 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-03-07 16:03:07 +0700
commite47f41dbe4e61cb190154693b72bc99eb6ca6c3e (patch)
treed92fd90fc444d6141745c8ae0d60838f92502e06 /crypto/src/asn1/ConstructedLazyDLEncoding.cs
parentAdd BasicGcmMultiplier.IsHardwareAccelerated (diff)
downloadBouncyCastle.NET-ed25519-e47f41dbe4e61cb190154693b72bc99eb6ca6c3e.tar.xz
Remove lazy ASN.1 behaviour
Diffstat (limited to 'crypto/src/asn1/ConstructedLazyDLEncoding.cs')
-rw-r--r--crypto/src/asn1/ConstructedLazyDLEncoding.cs31
1 files changed, 0 insertions, 31 deletions
diff --git a/crypto/src/asn1/ConstructedLazyDLEncoding.cs b/crypto/src/asn1/ConstructedLazyDLEncoding.cs
deleted file mode 100644
index ee9d21c66..000000000
--- a/crypto/src/asn1/ConstructedLazyDLEncoding.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using System;
-
-namespace Org.BouncyCastle.Asn1
-{
-    internal class ConstructedLazyDLEncoding
-        : IAsn1Encoding
-    {
-        private readonly int m_tagClass;
-        private readonly int m_tagNo;
-        private readonly byte[] m_contentsOctets;
-
-        internal ConstructedLazyDLEncoding(int tagClass, int tagNo, byte[] contentsOctets)
-        {
-            m_tagClass = tagClass;
-            m_tagNo = tagNo;
-            m_contentsOctets = contentsOctets;
-        }
-
-        void IAsn1Encoding.Encode(Asn1OutputStream asn1Out)
-        {
-            asn1Out.WriteIdentifier(Asn1Tags.Constructed | m_tagClass, m_tagNo);
-            asn1Out.WriteDL(m_contentsOctets.Length);
-            asn1Out.Write(m_contentsOctets, 0, m_contentsOctets.Length);
-        }
-
-        int IAsn1Encoding.GetLength()
-        {
-            return Asn1OutputStream.GetLengthOfEncodingDL(m_tagNo, m_contentsOctets.Length);
-        }
-    }
-}