summary refs log tree commit diff
path: root/crypto/src/bcpg
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-02-02 19:22:45 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-02-02 19:22:45 +0700
commitae8d09df6e2fa33a138a200949a75b3c8750cc0f (patch)
treed7675a6c9e54b31688e00ceb0973b35f15b8eda5 /crypto/src/bcpg
parentSupport null 'otherInfo' (diff)
downloadBouncyCastle.NET-ed25519-ae8d09df6e2fa33a138a200949a75b3c8750cc0f.tar.xz
Misc. cleanup after bc-fips-csharp updates
Diffstat (limited to 'crypto/src/bcpg')
-rw-r--r--crypto/src/bcpg/BcpgOutputStream.cs9
-rw-r--r--crypto/src/bcpg/sig/Features.cs11
2 files changed, 8 insertions, 12 deletions
diff --git a/crypto/src/bcpg/BcpgOutputStream.cs b/crypto/src/bcpg/BcpgOutputStream.cs
index c6a9b8657..3bae7e383 100644
--- a/crypto/src/bcpg/BcpgOutputStream.cs
+++ b/crypto/src/bcpg/BcpgOutputStream.cs
@@ -10,13 +10,10 @@ namespace Org.BouncyCastle.Bcpg
     public class BcpgOutputStream
         : BaseOutputStream
     {
-		internal static BcpgOutputStream Wrap(
-			Stream outStr)
+		internal static BcpgOutputStream Wrap(Stream outStr)
 		{
-			if (outStr is BcpgOutputStream)
-			{
-				return (BcpgOutputStream) outStr;
-			}
+			if (outStr is BcpgOutputStream bcpgOutputStream)
+				return bcpgOutputStream;
 
 			return new BcpgOutputStream(outStr);
 		}
diff --git a/crypto/src/bcpg/sig/Features.cs b/crypto/src/bcpg/sig/Features.cs
index f6123d612..a04d2cf9d 100644
--- a/crypto/src/bcpg/sig/Features.cs
+++ b/crypto/src/bcpg/sig/Features.cs
@@ -24,19 +24,18 @@ namespace Org.BouncyCastle.Bcpg.Sig
             return new byte[1]{ feature };
         }
 
-        public Features(
-            bool critical,
-            bool isLongLength,
-            byte[] data)
+        public Features(bool critical, bool isLongLength, byte[] data)
             : base(SignatureSubpacketTag.Features, critical, isLongLength, data)
         {
         }
 
-        public Features(bool critical, byte features): this(critical, false, FeatureToByteArray(features))
+        public Features(bool critical, byte features)
+            : this(critical, false, FeatureToByteArray(features))
         {
         }
 
-        public Features(bool critical, int features):  this(critical, false, FeatureToByteArray((byte)features))
+        public Features(bool critical, int features)
+            : this(critical, false, FeatureToByteArray((byte)features))
         {
         }