summary refs log tree commit diff
path: root/crypto/src/util/Arrays.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2020-07-30 20:19:37 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2020-07-30 20:19:37 +0700
commit0d3f1208b3f22329da901bd8764297673c6ae970 (patch)
tree11bd82392fc34db1180d51aab2be97da02158c3c /crypto/src/util/Arrays.cs
parentPGP updates from bc-java (diff)
downloadBouncyCastle.NET-ed25519-0d3f1208b3f22329da901bd8764297673c6ae970.tar.xz
Misc. updates from bc-java
Diffstat (limited to 'crypto/src/util/Arrays.cs')
-rw-r--r--crypto/src/util/Arrays.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/src/util/Arrays.cs b/crypto/src/util/Arrays.cs
index 7b1766bba..03b451ef9 100644
--- a/crypto/src/util/Arrays.cs
+++ b/crypto/src/util/Arrays.cs
@@ -782,5 +782,15 @@ namespace Org.BouncyCastle.Utilities
             }
             return false;
         }
+
+        public static bool IsNullOrEmpty(byte[] array)
+        {
+            return null == array || array.Length < 1;
+        }
+
+        public static bool IsNullOrEmpty(object[] array)
+        {
+            return null == array || array.Length < 1;
+        }
     }
 }