summary refs log tree commit diff
path: root/crypto/src/asn1/DerGraphicString.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/DerGraphicString.cs')
-rw-r--r--crypto/src/asn1/DerGraphicString.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/src/asn1/DerGraphicString.cs b/crypto/src/asn1/DerGraphicString.cs
index 85330eb33..7c3d1edb2 100644
--- a/crypto/src/asn1/DerGraphicString.cs
+++ b/crypto/src/asn1/DerGraphicString.cs
@@ -104,6 +104,16 @@ namespace Org.BouncyCastle.Asn1
             return new PrimitiveEncoding(tagClass, tagNo, m_contents);
         }
 
+        internal sealed override DerEncoding GetEncodingDer()
+        {
+            return new PrimitiveDerEncoding(Asn1Tags.Universal, Asn1Tags.GraphicString, m_contents);
+        }
+
+        internal sealed override DerEncoding GetEncodingDerImplicit(int tagClass, int tagNo)
+        {
+            return new PrimitiveDerEncoding(tagClass, tagNo, m_contents);
+        }
+
         protected override int Asn1GetHashCode()
 		{
             return Arrays.GetHashCode(m_contents);