summary refs log tree commit diff
path: root/crypto/src/asn1/DerUniversalString.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/DerUniversalString.cs')
-rw-r--r--crypto/src/asn1/DerUniversalString.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/src/asn1/DerUniversalString.cs b/crypto/src/asn1/DerUniversalString.cs
index 1183ed1f3..d65121ab0 100644
--- a/crypto/src/asn1/DerUniversalString.cs
+++ b/crypto/src/asn1/DerUniversalString.cs
@@ -119,6 +119,16 @@ namespace Org.BouncyCastle.Asn1
             return new PrimitiveEncoding(tagClass, tagNo, m_contents);
         }
 
+        internal sealed override DerEncoding GetEncodingDer()
+        {
+            return new PrimitiveDerEncoding(Asn1Tags.Universal, Asn1Tags.UniversalString, m_contents);
+        }
+
+        internal sealed override DerEncoding GetEncodingDerImplicit(int tagClass, int tagNo)
+        {
+            return new PrimitiveDerEncoding(tagClass, tagNo, m_contents);
+        }
+
         protected override bool Asn1Equals(Asn1Object asn1Object)
         {
             DerUniversalString that = asn1Object as DerUniversalString;