@@ -67,15 +67,15 @@ class EC {
6767 * @brief A string indicating which curve this is.
6868 */
6969 constexpr static const char * Name () {
70- return Curve::kName ;
70+ return Curve::NAME ;
7171 };
7272
7373 /* *
7474 * @brief Get the generator of this curve.
7575 */
7676 constexpr static EC Generator () {
7777 EC g;
78- CurveSetGenerator<Curve>(g.mValue );
78+ CurveSetGenerator<Curve>(g.m_value );
7979 return g;
8080 };
8181
@@ -86,7 +86,7 @@ class EC {
8686 */
8787 static EC Read (const unsigned char * src) {
8888 EC e;
89- CurveFromBytes<Curve>(e.mValue , src);
89+ CurveFromBytes<Curve>(e.m_value , src);
9090 return e;
9191 };
9292
@@ -95,15 +95,15 @@ class EC {
9595 */
9696 static EC FromAffine (const Field& x, const Field& y) {
9797 EC e;
98- CurveSetAffine<Curve>(e.mValue , x, y);
98+ CurveSetAffine<Curve>(e.m_value , x, y);
9999 return e;
100100 };
101101
102102 /* *
103103 * @brief Create a new point equal to the point at infinity.
104104 */
105105 explicit constexpr EC () {
106- CurveSetPointAtInfinity<Curve>(mValue );
106+ CurveSetPointAtInfinity<Curve>(m_value );
107107 };
108108
109109 /* *
@@ -112,7 +112,7 @@ class EC {
112112 * @return this
113113 */
114114 EC& operator +=(const EC& other) {
115- CurveAdd<Curve>(mValue , other.mValue );
115+ CurveAdd<Curve>(m_value , other.m_value );
116116 return *this ;
117117 };
118118
@@ -132,7 +132,7 @@ class EC {
132132 * @return this after doubling.
133133 */
134134 EC& DoubleInPlace () {
135- CurveDouble<Curve>(mValue );
135+ CurveDouble<Curve>(m_value );
136136 return *this ;
137137 };
138138
@@ -151,7 +151,7 @@ class EC {
151151 * @return this.
152152 */
153153 EC& operator -=(const EC& other) {
154- CurveSubtract<Curve>(mValue , other.mValue );
154+ CurveSubtract<Curve>(m_value , other.m_value );
155155 return *this ;
156156 };
157157
@@ -172,7 +172,7 @@ class EC {
172172 * @return this.
173173 */
174174 EC& operator *=(const Number& scalar) {
175- CurveScalarMultiply<Curve>(mValue , scalar);
175+ CurveScalarMultiply<Curve>(m_value , scalar);
176176 return *this ;
177177 };
178178
@@ -182,7 +182,7 @@ class EC {
182182 * @return this.
183183 */
184184 EC& operator *=(const Order& scalar) {
185- CurveScalarMultiply<Curve>(mValue , scalar);
185+ CurveScalarMultiply<Curve>(m_value , scalar);
186186 return *this ;
187187 };
188188
@@ -234,7 +234,7 @@ class EC {
234234 * @return this.
235235 */
236236 EC& Negate () {
237- CurveNegate<Curve>(mValue );
237+ CurveNegate<Curve>(m_value );
238238 return *this ;
239239 }
240240
@@ -253,7 +253,7 @@ class EC {
253253 * @return true if the two points are equal and false otherwise.
254254 */
255255 bool Equal (const EC& other) const {
256- return CurveEqual<Curve>(mValue , other.mValue );
256+ return CurveEqual<Curve>(m_value , other.m_value );
257257 };
258258
259259 /* *
@@ -275,22 +275,22 @@ class EC {
275275 * @return true if this point is equal to the point at inifity.
276276 */
277277 bool PointAtInfinity () const {
278- return CurveIsPointAtInfinity<Curve>(mValue );
278+ return CurveIsPointAtInfinity<Curve>(m_value );
279279 };
280280
281281 /* *
282282 * @brief Return this point as a pair of affine coordinates.
283283 * @return this point as a pair of affine coordinates.
284284 */
285285 std::array<Field, 2 > ToAffine () const {
286- return CurveToAffine<Curve>(mValue );
286+ return CurveToAffine<Curve>(m_value );
287287 };
288288
289289 /* *
290290 * @brief Output this point as a string.
291291 */
292292 std::string ToString () const {
293- return CurveToString<Curve>(mValue );
293+ return CurveToString<Curve>(m_value );
294294 };
295295
296296 /* *
@@ -307,11 +307,11 @@ class EC {
307307 * @param compress whether to compress the point
308308 */
309309 void Write (unsigned char * dest, bool compress = true ) const {
310- CurveToBytes<Curve>(dest, mValue , compress);
310+ CurveToBytes<Curve>(dest, m_value , compress);
311311 };
312312
313313 private:
314- typename Curve::ValueType mValue ;
314+ typename Curve::ValueType m_value ;
315315};
316316
317317/* *
0 commit comments