summary refs log tree commit diff
path: root/crypto/src/util
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-01-22 09:45:19 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-01-22 09:45:19 +0700
commitcbc0848b90917fa606be8049f056de2acc1712a8 (patch)
tree36632d05242cc14daa08e8acf759f5a72246caf6 /crypto/src/util
parentBMA-119 (diff)
downloadBouncyCastle.NET-ed25519-cbc0848b90917fa606be8049f056de2acc1712a8.tar.xz
Port LongArray from Java and use in F2mFieldElement
Diffstat (limited to 'crypto/src/util')
-rw-r--r--crypto/src/util/Arrays.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/crypto/src/util/Arrays.cs b/crypto/src/util/Arrays.cs
index 59c91bdd1..8f8cebedc 100644
--- a/crypto/src/util/Arrays.cs
+++ b/crypto/src/util/Arrays.cs
@@ -216,7 +216,7 @@ namespace Org.BouncyCastle.Utilities
         public static byte[] Clone(
             byte[] data)
         {
-            return data == null ? null : (byte[]) data.Clone();
+            return data == null ? null : (byte[])data.Clone();
         }
 
         public static byte[] Clone(
@@ -238,7 +238,12 @@ namespace Org.BouncyCastle.Utilities
         public static int[] Clone(
             int[] data)
         {
-            return data == null ? null : (int[]) data.Clone();
+            return data == null ? null : (int[])data.Clone();
+        }
+
+        public static long[] Clone(long[] data)
+        {
+            return data == null ? null : (long[])data.Clone();
         }
 
         [CLSCompliantAttribute(false)]