diff options
-rw-r--r-- | doc/build_log.txt | 2 | ||||
-rw-r--r-- | src/math/ec_gfp/curve_gfp.h | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/doc/build_log.txt b/doc/build_log.txt index 4158289bf..2e92a6f90 100644 --- a/doc/build_log.txt +++ b/doc/build_log.txt @@ -14,7 +14,7 @@ Debian reports the build results for 1.8 on `a number of platforms =========== ======= =================== ======================== ============================ ======== Date Version OS CPU Compiler Results =========== ======= =================== ======================== ============================ ======== -2011-03-18 1.9.14 Debian 6.0 Intel Atom D510 GCC 4.4.5 OK +2011-05-09 1.9.17 Debian 6.0 Intel Atom D510 GCC 4.4.5 OK 2010-05-09 1.9.17 Gentoo 10.0 PowerPC G5 GCC 4.4.5 OK 2011-05-02 1.9.17 FreeBSD 8.2 x86-64 GCC 4.2.1 OK 2011-04-25 1.9.16 Gentoo 10.0 Intel Core i7-860 Clang 2.9 Miscompiles SSE2 IDEA diff --git a/src/math/ec_gfp/curve_gfp.h b/src/math/ec_gfp/curve_gfp.h index 4f339126e..9867f82fe 100644 --- a/src/math/ec_gfp/curve_gfp.h +++ b/src/math/ec_gfp/curve_gfp.h @@ -33,17 +33,15 @@ class BOTAN_DLL CurveGFp * @param b second coefficient */ CurveGFp(const BigInt& p, const BigInt& a, const BigInt& b) : - p(p), a(a), b(b) + p(p), a(a), b(b), p_words(p.sig_words()) { - BigInt r(BigInt::Power2, p.sig_words() * BOTAN_MP_WORD_BITS); + BigInt r(BigInt::Power2, p_words * BOTAN_MP_WORD_BITS); p_dash = (((r * inverse_mod(r, p)) - 1) / p).word_at(0); r2 = (r * r) % p; a_r = (a * r) % p; b_r = (b * r) % p; - - p_words = p.sig_words(); } // CurveGFp(const CurveGFp& other) = default; |