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/SecP192R1FieldElement.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crypto/src/math/ec/custom/sec/SecP192R1FieldElement.cs') diff --git a/crypto/src/math/ec/custom/sec/SecP192R1FieldElement.cs b/crypto/src/math/ec/custom/sec/SecP192R1FieldElement.cs index f3e12b542..65a1aadb3 100644 --- a/crypto/src/math/ec/custom/sec/SecP192R1FieldElement.cs +++ b/crypto/src/math/ec/custom/sec/SecP192R1FieldElement.cs @@ -2,13 +2,15 @@ using Org.BouncyCastle.Math.Raw; using Org.BouncyCastle.Utilities; +using Org.BouncyCastle.Utilities.Encoders; namespace Org.BouncyCastle.Math.EC.Custom.Sec { internal class SecP192R1FieldElement : AbstractFpFieldElement { - public static readonly BigInteger Q = SecP192R1Curve.q; + public static readonly BigInteger Q = new BigInteger(1, + Hex.Decode("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF")); protected internal readonly uint[] x; -- cgit 1.5.1