diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-08-10 00:18:41 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-08-10 00:18:41 +0700 |
commit | 36cf0ee10f38735f771d477368e384eae607f6d0 (patch) | |
tree | c04aed6ce1497acc8366a564f62a6d01de8510d4 /crypto/src/math/ec/custom/sec/SecP160R2FieldElement.cs | |
parent | Add and use IntValueExact properties (diff) | |
download | BouncyCastle.NET-ed25519-36cf0ee10f38735f771d477368e384eae607f6d0.tar.xz |
Fix circular dependence of statics
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecP160R2FieldElement.cs')
-rw-r--r-- | crypto/src/math/ec/custom/sec/SecP160R2FieldElement.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecP160R2FieldElement.cs b/crypto/src/math/ec/custom/sec/SecP160R2FieldElement.cs index 9d8131857..95d3c0b31 100644 --- a/crypto/src/math/ec/custom/sec/SecP160R2FieldElement.cs +++ b/crypto/src/math/ec/custom/sec/SecP160R2FieldElement.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 SecP160R2FieldElement : AbstractFpFieldElement { - public static readonly BigInteger Q = SecP160R2Curve.q; + public static readonly BigInteger Q = new BigInteger(1, + Hex.Decode("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73")); protected internal readonly uint[] x; |