diff options
Diffstat (limited to 'crypto/src/asn1/Asn1OutputStream.cs')
-rw-r--r-- | crypto/src/asn1/Asn1OutputStream.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/src/asn1/Asn1OutputStream.cs b/crypto/src/asn1/Asn1OutputStream.cs index 5fd36aa42..86006877b 100644 --- a/crypto/src/asn1/Asn1OutputStream.cs +++ b/crypto/src/asn1/Asn1OutputStream.cs @@ -220,6 +220,11 @@ namespace Org.BouncyCastle.Asn1 return GetLengthOfIdentifier(tagNo) + GetLengthOfDL(contentsLength) + contentsLength; } + internal static int GetLengthOfEncodingIL(int tagNo, IAsn1Encoding contentsEncoding) + { + return GetLengthOfIdentifier(tagNo) + 3 + contentsEncoding.GetLength(); + } + internal static int GetLengthOfEncodingIL(int tagNo, IAsn1Encoding[] contentsEncodings) { return GetLengthOfIdentifier(tagNo) + 3 + GetLengthOfContents(contentsEncodings); |