summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-07-31 15:58:26 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-07-31 15:58:26 +0700
commitebbb4436604550d60ded2e1e4454bd7b7c0727d6 (patch)
tree39ff53635a27cea2567d23b42c4a0c4af5cfa795 /crypto/src
parentFix conditional (diff)
downloadBouncyCastle.NET-ed25519-ebbb4436604550d60ded2e1e4454bd7b7c0727d6.tar.xz
Misc. cleanup
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/crmf/CertificateRequestMessageBuilder.cs6
-rw-r--r--crypto/src/crypto/operators/Asn1DigestFactory.cs2
2 files changed, 3 insertions, 5 deletions
diff --git a/crypto/src/crmf/CertificateRequestMessageBuilder.cs b/crypto/src/crmf/CertificateRequestMessageBuilder.cs
index 84c9b7966..34a224df1 100644
--- a/crypto/src/crmf/CertificateRequestMessageBuilder.cs
+++ b/crypto/src/crmf/CertificateRequestMessageBuilder.cs
@@ -187,10 +187,8 @@ namespace Org.BouncyCastle.Crmf
         }
 #endif
 
-        public CertificateRequestMessageBuilder SetAuthInfoSender(X509Name sender)
-        {
-            return SetAuthInfoSender(new GeneralName(sender));
-        }
+        public CertificateRequestMessageBuilder SetAuthInfoSender(X509Name sender) =>
+            SetAuthInfoSender(new GeneralName(sender));
 
         public CertificateRequestMessageBuilder SetAuthInfoSender(GeneralName sender)
         {
diff --git a/crypto/src/crypto/operators/Asn1DigestFactory.cs b/crypto/src/crypto/operators/Asn1DigestFactory.cs
index 753047937..ae34b4ea5 100644
--- a/crypto/src/crypto/operators/Asn1DigestFactory.cs
+++ b/crypto/src/crypto/operators/Asn1DigestFactory.cs
@@ -8,7 +8,7 @@ namespace Org.BouncyCastle.Crypto.Operators
         : IDigestFactory
     {
         public static Asn1DigestFactory Get(DerObjectIdentifier oid) =>
-            new Asn1DigestFactory(DigestUtilities.GetDigest(oid), oid);          
+            new Asn1DigestFactory(DigestUtilities.GetDigest(oid), oid);
 
         public static Asn1DigestFactory Get(string mechanism) => Get(DigestUtilities.GetObjectIdentifier(mechanism));