summary refs log tree commit diff
path: root/crypto/src/asn1/PrimitiveEncoding.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/PrimitiveEncoding.cs')
-rw-r--r--crypto/src/asn1/PrimitiveEncoding.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/src/asn1/PrimitiveEncoding.cs b/crypto/src/asn1/PrimitiveEncoding.cs
index 72c3219ef..70fc36517 100644
--- a/crypto/src/asn1/PrimitiveEncoding.cs
+++ b/crypto/src/asn1/PrimitiveEncoding.cs
@@ -25,9 +25,7 @@ namespace Org.BouncyCastle.Asn1
 
         int IAsn1Encoding.GetLength()
         {
-            return Asn1OutputStream.GetLengthOfIdentifier(m_tagNo)
-                +  Asn1OutputStream.GetLengthOfDL(m_contentsOctets.Length)
-                +  m_contentsOctets.Length;
+            return Asn1OutputStream.GetLengthOfEncodingDL(m_tagNo, m_contentsOctets.Length);
         }
     }
 }