diff options
Diffstat (limited to 'crypto/src/asn1/DerOctetString.cs')
-rw-r--r-- | crypto/src/asn1/DerOctetString.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/src/asn1/DerOctetString.cs b/crypto/src/asn1/DerOctetString.cs index f865abff8..bdabb8221 100644 --- a/crypto/src/asn1/DerOctetString.cs +++ b/crypto/src/asn1/DerOctetString.cs @@ -22,6 +22,11 @@ namespace Org.BouncyCastle.Asn1 { } + internal override int EncodedLength(bool withID) + { + return Asn1OutputStream.GetLengthOfEncodingDL(withID, str.Length); + } + internal override void Encode(Asn1OutputStream asn1Out, bool withID) { asn1Out.WriteEncodingDL(withID, Asn1Tags.OctetString, str); |