From d209b6b28b2b0e396e8813c6bb80ef98e1e2ba30 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 28 Jan 2014 10:08:25 +0700 Subject: Port from Java order/cofactor for all curves --- crypto/src/math/ec/custom/sec/SecP256R1Curve.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto/src/math/ec/custom/sec/SecP256R1Curve.cs') diff --git a/crypto/src/math/ec/custom/sec/SecP256R1Curve.cs b/crypto/src/math/ec/custom/sec/SecP256R1Curve.cs index 252ec345f..c0620574c 100644 --- a/crypto/src/math/ec/custom/sec/SecP256R1Curve.cs +++ b/crypto/src/math/ec/custom/sec/SecP256R1Curve.cs @@ -24,8 +24,8 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec Hex.Decode("FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC"))); this.m_b = FromBigInteger(new BigInteger(1, Hex.Decode("5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B"))); - //this.order = new BigInteger(1, Hex.decode("FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551")); - //this.cofactor = BigInteger.valueOf(1); + this.m_order = new BigInteger(1, Hex.Decode("FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551")); + this.m_cofactor = BigInteger.ValueOf(1); this.m_coord = SecP256R1_DEFAULT_COORDS; } -- cgit 1.4.1