From ebbb4436604550d60ded2e1e4454bd7b7c0727d6 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Mon, 31 Jul 2023 15:58:26 +0700 Subject: Misc. cleanup --- crypto/src/crmf/CertificateRequestMessageBuilder.cs | 6 ++---- crypto/src/crypto/operators/Asn1DigestFactory.cs | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'crypto/src') 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)); -- cgit 1.5.1