From 36cf0ee10f38735f771d477368e384eae607f6d0 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sat, 10 Aug 2019 00:18:41 +0700 Subject: Fix circular dependence of statics --- crypto/src/math/ec/custom/sec/SecP128R1Curve.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crypto/src/math/ec/custom/sec/SecP128R1Curve.cs') diff --git a/crypto/src/math/ec/custom/sec/SecP128R1Curve.cs b/crypto/src/math/ec/custom/sec/SecP128R1Curve.cs index ffe40581f..58bff2390 100644 --- a/crypto/src/math/ec/custom/sec/SecP128R1Curve.cs +++ b/crypto/src/math/ec/custom/sec/SecP128R1Curve.cs @@ -8,8 +8,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec internal class SecP128R1Curve : AbstractFpCurve { - public static readonly BigInteger q = new BigInteger(1, - Hex.Decode("FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF")); + public static readonly BigInteger q = SecP128R1FieldElement.Q; private const int SECP128R1_DEFAULT_COORDS = COORD_JACOBIAN; private const int SECP128R1_FE_INTS = 4; -- cgit 1.5.1