diff options
author | lloyd <[email protected]> | 2010-02-25 03:58:35 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-02-25 03:58:35 +0000 |
commit | 8ba3a81c5f1cbe488269df5e009de3d165eb0654 (patch) | |
tree | 87daff36a9e415d0d118d708c2e51b23dd700d3b /checks/ecdsa.cpp | |
parent | c13f576834a52b03b88366cb243da49fc784b284 (diff) |
CurveGFp: Inline, deleting source file. Store only a,b,p as
BigInts. Also reorder constructor args to p, a, b which seems more
sensible to me.
Diffstat (limited to 'checks/ecdsa.cpp')
-rw-r--r-- | checks/ecdsa.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/checks/ecdsa.cpp b/checks/ecdsa.cpp index c86668baf..f9dcf5597 100644 --- a/checks/ecdsa.cpp +++ b/checks/ecdsa.cpp @@ -195,7 +195,7 @@ void test_sign_then_ver(RandomNumberGenerator& rng) BigInt bi_a_secp("0xffffffffffffffffffffffffffffffff7ffffffc"); BigInt bi_b_secp("0x1c97befc54bd7a8b65acf89f81d4d4adc565fa45"); BigInt order = BigInt("0x0100000000000000000001f4c8f927aed3ca752257"); - CurveGFp curve(GFpElement(bi_p_secp,bi_a_secp), GFpElement(bi_p_secp, bi_b_secp), bi_p_secp); + CurveGFp curve(bi_p_secp, bi_a_secp, bi_b_secp); BigInt cofactor = BigInt(1); PointGFp p_G = OS2ECP ( sv_g_secp, curve ); @@ -332,7 +332,7 @@ void test_create_and_verify(RandomNumberGenerator& rng) BigInt bi_a_secp = BigInt::decode ( sv_a_secp.begin(), sv_a_secp.size() ); BigInt bi_b_secp = BigInt::decode ( sv_b_secp.begin(), sv_b_secp.size() ); BigInt bi_order_g = BigInt::decode ( sv_order_g.begin(), sv_order_g.size() ); - CurveGFp curve ( GFpElement ( bi_p_secp,bi_a_secp ), GFpElement ( bi_p_secp, bi_b_secp ), bi_p_secp ); + CurveGFp curve(bi_p_secp, bi_a_secp, bi_b_secp); PointGFp p_G = OS2ECP ( sv_G_secp_comp, curve ); EC_Domain_Params dom_params(curve, p_G, bi_order_g, BigInt(1)); |