summary refs log tree commit diff
path: root/crypto/src/math/ec/multiplier/FixedPointUtilities.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/ec/multiplier/FixedPointUtilities.cs')
-rw-r--r--crypto/src/math/ec/multiplier/FixedPointUtilities.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/src/math/ec/multiplier/FixedPointUtilities.cs b/crypto/src/math/ec/multiplier/FixedPointUtilities.cs
index 8a04fcdc1..194995e08 100644
--- a/crypto/src/math/ec/multiplier/FixedPointUtilities.cs
+++ b/crypto/src/math/ec/multiplier/FixedPointUtilities.cs
@@ -4,6 +4,8 @@ namespace Org.BouncyCastle.Math.EC.Multiplier
 {
     public class FixedPointUtilities
     {
+        public static readonly string PRECOMP_NAME = "bc_fixed_point";
+
         public static int GetCombSize(ECCurve c)
         {
             BigInteger order = c.Order;
@@ -25,7 +27,7 @@ namespace Org.BouncyCastle.Math.EC.Multiplier
             ECCurve c = p.Curve;
 
             int n = 1 << width;
-            FixedPointPreCompInfo info = GetFixedPointPreCompInfo(c.GetPreCompInfo(p));
+            FixedPointPreCompInfo info = GetFixedPointPreCompInfo(c.GetPreCompInfo(p, PRECOMP_NAME));
             ECPoint[] lookupTable = info.PreComp;
 
             if (lookupTable == null || lookupTable.Length != n)
@@ -60,7 +62,7 @@ namespace Org.BouncyCastle.Math.EC.Multiplier
 
                 info.PreComp = lookupTable;
 
-                c.SetPreCompInfo(p, info);
+                c.SetPreCompInfo(p, PRECOMP_NAME, info);
             }
 
             return info;