summary refs log tree commit diff
path: root/crypto/src/cmp/GeneralPkiMessage.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-07-30 22:39:07 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-07-30 22:39:07 +0700
commitb9b0bae81c983a9076c4749eace11f4e4c77e075 (patch)
tree106753e5e944fb9c3a93bd9c064c8378ec786b2c /crypto/src/cmp/GeneralPkiMessage.cs
parentAdd API TODOs for factories (diff)
downloadBouncyCastle.NET-ed25519-b9b0bae81c983a9076c4749eace11f4e4c77e075.tar.xz
Refactoring around X509
Diffstat (limited to 'crypto/src/cmp/GeneralPkiMessage.cs')
-rw-r--r--crypto/src/cmp/GeneralPkiMessage.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/src/cmp/GeneralPkiMessage.cs b/crypto/src/cmp/GeneralPkiMessage.cs
index 09c02434c..3ef4f4630 100644
--- a/crypto/src/cmp/GeneralPkiMessage.cs
+++ b/crypto/src/cmp/GeneralPkiMessage.cs
@@ -7,10 +7,7 @@ namespace Org.BouncyCastle.Cmp
     {
         private readonly PkiMessage m_pkiMessage;
 
-        private static PkiMessage ParseBytes(byte[] encoding)
-        {
-            return PkiMessage.GetInstance(Asn1Object.FromByteArray(encoding));
-        }
+        private static PkiMessage ParseBytes(byte[] encoding) => PkiMessage.GetInstance(encoding);
 
         /// <summary>
         /// Wrap a PKIMessage ASN.1 structure.