summary refs log tree commit diff
path: root/crypto/src/util
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2019-08-01 15:20:29 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2019-08-01 15:20:29 +0700
commitabe0572ea59671d9444b61bf3ad4458518c2805d (patch)
treeec5fcb0c70214b941c036589be9656ca79d24a3b /crypto/src/util
parentRework some of the ImplSquare methods in custom binary curves (diff)
downloadBouncyCastle.NET-ed25519-abe0572ea59671d9444b61bf3ad4458518c2805d.tar.xz
Misc. ASN.1 updates from bc-java
Diffstat (limited to 'crypto/src/util')
-rw-r--r--crypto/src/util/Arrays.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/crypto/src/util/Arrays.cs b/crypto/src/util/Arrays.cs
index aa8d31df4..5d62d7174 100644
--- a/crypto/src/util/Arrays.cs
+++ b/crypto/src/util/Arrays.cs
@@ -721,5 +721,19 @@ namespace Org.BouncyCastle.Utilities
 
             return result;
         }
+
+        public static bool IsNullOrContainsNull(object[] array)
+        {
+            if (null == array)
+                return true;
+
+            int count = array.Length;
+            for (int i = 0; i < count; ++i)
+            {
+                if (null == array[i])
+                    return true;
+            }
+            return false;
+        }
     }
 }