summary refs log tree commit diff
path: root/crypto/src/asn1/PrimitiveEncodingSuffixed.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/PrimitiveEncodingSuffixed.cs')
-rw-r--r--crypto/src/asn1/PrimitiveEncodingSuffixed.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/src/asn1/PrimitiveEncodingSuffixed.cs b/crypto/src/asn1/PrimitiveEncodingSuffixed.cs

index ef0ef49ac..380bf479a 100644 --- a/crypto/src/asn1/PrimitiveEncodingSuffixed.cs +++ b/crypto/src/asn1/PrimitiveEncodingSuffixed.cs
@@ -28,9 +28,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); } } }