summary refs log tree commit diff
path: root/crypto/src/bcpg/sig/Revocable.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-10-27 19:33:38 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-10-27 19:33:38 +0700
commit0f5e5e54e55c23222f6f934f2c32f212f13a34ae (patch)
treeea7a9def6ee86a123457912c6866e3c95b3bb679 /crypto/src/bcpg/sig/Revocable.cs
parentPqc.Crypto.Bike cleanup (diff)
downloadBouncyCastle.NET-ed25519-0f5e5e54e55c23222f6f934f2c32f212f13a34ae.tar.xz
Refactoring in Bcpg.Sig
Diffstat (limited to 'crypto/src/bcpg/sig/Revocable.cs')
-rw-r--r--crypto/src/bcpg/sig/Revocable.cs15
1 files changed, 2 insertions, 13 deletions
diff --git a/crypto/src/bcpg/sig/Revocable.cs b/crypto/src/bcpg/sig/Revocable.cs
index 7aa91391f..6ded4d865 100644
--- a/crypto/src/bcpg/sig/Revocable.cs
+++ b/crypto/src/bcpg/sig/Revocable.cs
@@ -8,20 +8,9 @@ namespace Org.BouncyCastle.Bcpg.Sig
     public class Revocable
         : SignatureSubpacket
     {
-        private static byte[] BooleanToByteArray(
-            bool    value)
+        private static byte[] BooleanToByteArray(bool value)
         {
-            byte[]    data = new byte[1];
-
-            if (value)
-            {
-                data[0] = 1;
-                return data;
-            }
-            else
-            {
-                return data;
-            }
+            return new byte[1]{ Convert.ToByte(value) };
         }
 
         public Revocable(