summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2015-03-23 14:51:41 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2015-03-23 14:51:41 +0700
commit7bd7de5760cbdfa7ba0a0f41ff2dee5fd5bca045 (patch)
treed57a6fca1a269bbdce83c32a8beb14d98919952c /crypto
parentAdd SquarePow method to ECFieldElement (diff)
downloadBouncyCastle.NET-ed25519-7bd7de5760cbdfa7ba0a0f41ff2dee5fd5bca045.tar.xz
Reduce memory usage of INTERLEAVE2_TABLE
Diffstat (limited to 'crypto')
-rw-r--r--crypto/src/math/ec/LongArray.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/math/ec/LongArray.cs b/crypto/src/math/ec/LongArray.cs
index c4e3dacbc..84462e0ea 100644
--- a/crypto/src/math/ec/LongArray.cs
+++ b/crypto/src/math/ec/LongArray.cs
@@ -13,7 +13,7 @@ namespace Org.BouncyCastle.Math.EC
          * This expands 8 bit indices into 16 bit contents (high bit 14), by inserting 0s between bits.
          * In a binary field, this operation is the same as squaring an 8 bit number.
          */
-        private static readonly int[] INTERLEAVE2_TABLE = new int[]
+        private static readonly ushort[] INTERLEAVE2_TABLE = new ushort[]
         {
             0x0000, 0x0001, 0x0004, 0x0005, 0x0010, 0x0011, 0x0014, 0x0015,
             0x0040, 0x0041, 0x0044, 0x0045, 0x0050, 0x0051, 0x0054, 0x0055,