diff options
Diffstat (limited to 'crypto/src/asn1/DerGeneralString.cs')
-rw-r--r-- | crypto/src/asn1/DerGeneralString.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/src/asn1/DerGeneralString.cs b/crypto/src/asn1/DerGeneralString.cs index 6a378307d..bfc6f6fd5 100644 --- a/crypto/src/asn1/DerGeneralString.cs +++ b/crypto/src/asn1/DerGeneralString.cs @@ -97,6 +97,16 @@ namespace Org.BouncyCastle.Asn1 return new PrimitiveEncoding(tagClass, tagNo, m_contents); } + internal sealed override DerEncoding GetEncodingDer() + { + return new PrimitiveDerEncoding(Asn1Tags.Universal, Asn1Tags.GeneralString, m_contents); + } + + internal sealed override DerEncoding GetEncodingDerImplicit(int tagClass, int tagNo) + { + return new PrimitiveDerEncoding(tagClass, tagNo, m_contents); + } + protected override bool Asn1Equals(Asn1Object asn1Object) { DerGeneralString that = asn1Object as DerGeneralString; |