summary refs log tree commit diff
path: root/crypto/src/math/ec/custom/sec/SecP384R1Curve.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2019-08-10 00:18:41 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2019-08-10 00:18:41 +0700
commit36cf0ee10f38735f771d477368e384eae607f6d0 (patch)
treec04aed6ce1497acc8366a564f62a6d01de8510d4 /crypto/src/math/ec/custom/sec/SecP384R1Curve.cs
parentAdd and use IntValueExact properties (diff)
downloadBouncyCastle.NET-ed25519-36cf0ee10f38735f771d477368e384eae607f6d0.tar.xz
Fix circular dependence of statics
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecP384R1Curve.cs')
-rw-r--r--crypto/src/math/ec/custom/sec/SecP384R1Curve.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecP384R1Curve.cs b/crypto/src/math/ec/custom/sec/SecP384R1Curve.cs
index ac1855945..5c6afc2e5 100644
--- a/crypto/src/math/ec/custom/sec/SecP384R1Curve.cs
+++ b/crypto/src/math/ec/custom/sec/SecP384R1Curve.cs
@@ -8,8 +8,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec
     internal class SecP384R1Curve
         : AbstractFpCurve
     {
-        public static readonly BigInteger q = new BigInteger(1,
-            Hex.Decode("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF"));
+        public static readonly BigInteger q = SecP384R1FieldElement.Q;
 
         private const int SECP384R1_DEFAULT_COORDS = COORD_JACOBIAN;
         private const int SECP384R1_FE_INTS = 12;