diff options
Diffstat (limited to 'crypto/src/asn1/LazyDERSequence.cs')
-rw-r--r-- | crypto/src/asn1/LazyDERSequence.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crypto/src/asn1/LazyDERSequence.cs b/crypto/src/asn1/LazyDERSequence.cs index 83997aa98..26ec1efa3 100644 --- a/crypto/src/asn1/LazyDERSequence.cs +++ b/crypto/src/asn1/LazyDERSequence.cs @@ -59,6 +59,21 @@ namespace Org.BouncyCastle.Asn1 } } + internal override int EncodedLength(bool withID) + { + lock (this) + { + if (encoded == null) + { + return base.EncodedLength(withID); + } + else + { + return Asn1OutputStream.GetLengthOfEncodingDL(withID, encoded.Length); + } + } + } + internal override void Encode(Asn1OutputStream asn1Out, bool withID) { lock (this) |