diff options
Diffstat (limited to 'crypto/src/asn1/DerBoolean.cs')
-rw-r--r-- | crypto/src/asn1/DerBoolean.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/src/asn1/DerBoolean.cs b/crypto/src/asn1/DerBoolean.cs index 6256db6e0..61a4dddb2 100644 --- a/crypto/src/asn1/DerBoolean.cs +++ b/crypto/src/asn1/DerBoolean.cs @@ -112,6 +112,17 @@ namespace Org.BouncyCastle.Asn1 return new PrimitiveEncoding(tagClass, tagNo, GetContents(encoding)); } + internal sealed override DerEncoding GetEncodingDer() + { + return new PrimitiveDerEncoding(Asn1Tags.Universal, Asn1Tags.Boolean, + GetContents(Asn1OutputStream.EncodingDer)); + } + + internal sealed override DerEncoding GetEncodingDerImplicit(int tagClass, int tagNo) + { + return new PrimitiveDerEncoding(tagClass, tagNo, GetContents(Asn1OutputStream.EncodingDer)); + } + protected override bool Asn1Equals( Asn1Object asn1Object) { |