diff options
author | lloyd <[email protected]> | 2010-03-01 22:02:32 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-01 22:02:32 +0000 |
commit | a918fb9a2ff76e43bff79e38f692d5599a7c9780 (patch) | |
tree | 8e4dd2f41046bc175052b54771ab30bf8521c4de | |
parent | 3d3bbf64d66155be6100c148db46f809ce6de3ae (diff) |
Rename mult2_in_place just mult2 (double would be better but is a keyword...)
-rw-r--r-- | src/math/numbertheory/point_gfp.cpp | 8 | ||||
-rw-r--r-- | src/math/numbertheory/point_gfp.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/math/numbertheory/point_gfp.cpp b/src/math/numbertheory/point_gfp.cpp index 3a4684899..53e1d2ac7 100644 --- a/src/math/numbertheory/point_gfp.cpp +++ b/src/math/numbertheory/point_gfp.cpp @@ -67,7 +67,7 @@ PointGFp& PointGFp::operator+=(const PointGFp& rhs) { if(r.is_zero()) { - mult2_in_place(); + mult2(); return *this; } @@ -119,7 +119,7 @@ PointGFp& PointGFp::operator*=(const BigInt& scalar) } else if(value == 2) { - this->mult2_in_place(); + this->mult2(); if(scalar.is_negative()) this->negate(); } @@ -135,7 +135,7 @@ PointGFp& PointGFp::operator*=(const BigInt& scalar) for(int i = scalar.bits() - 1; i >= 0; --i) { - H.mult2_in_place(); + H.mult2(); if(scalar.get_bit(i)) H += P; } @@ -173,7 +173,7 @@ PointGFp& PointGFp::negate() } // *this *= 2 -void PointGFp::mult2_in_place() +void PointGFp::mult2() { if(is_zero()) return; diff --git a/src/math/numbertheory/point_gfp.h b/src/math/numbertheory/point_gfp.h index 0741b5e56..b5e170d8e 100644 --- a/src/math/numbertheory/point_gfp.h +++ b/src/math/numbertheory/point_gfp.h @@ -162,9 +162,9 @@ class BOTAN_DLL PointGFp bool operator==(const PointGFp& other) const; private: /** - * Multiply the point by two + * Point doubling */ - void mult2_in_place(); + void mult2(); CurveGFp curve; BigInt coord_x, coord_y, coord_z; |