summary refs log tree commit diff
path: root/crypto/src/asn1/Asn1Encodable.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-11-11 20:49:19 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-11-11 20:49:19 +0700
commitd882f5d8d51534b92e460365771f999138f71ad1 (patch)
treee69ff332af2465762c122913fe50084f9a2e28ff /crypto/src/asn1/Asn1Encodable.cs
parentRefactoring (diff)
downloadBouncyCastle.NET-ed25519-d882f5d8d51534b92e460365771f999138f71ad1.tar.xz
Trim stack trace
Diffstat (limited to 'crypto/src/asn1/Asn1Encodable.cs')
-rw-r--r--crypto/src/asn1/Asn1Encodable.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/Asn1Encodable.cs b/crypto/src/asn1/Asn1Encodable.cs
index 247b0e0bf..15918afb0 100644
--- a/crypto/src/asn1/Asn1Encodable.cs
+++ b/crypto/src/asn1/Asn1Encodable.cs
@@ -21,14 +21,14 @@ namespace Org.BouncyCastle.Asn1
 		public byte[] GetEncoded()
         {
             MemoryStream bOut = new MemoryStream();
-            EncodeTo(bOut);
+            ToAsn1Object().EncodeTo(bOut);
             return bOut.ToArray();
         }
 
         public byte[] GetEncoded(string encoding)
         {
             MemoryStream bOut = new MemoryStream();
-            EncodeTo(bOut, encoding);
+            ToAsn1Object().EncodeTo(bOut, encoding);
             return bOut.ToArray();
         }