From cbc0848b90917fa606be8049f056de2acc1712a8 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Wed, 22 Jan 2014 09:45:19 +0700 Subject: Port LongArray from Java and use in F2mFieldElement --- crypto/src/util/Arrays.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'crypto/src/util') 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)] -- cgit 1.4.1