Bug 1125025: Mark ec_GFp_pt_dbl_jm and ec_GFp_pt_add_jm_aff as static.
authorWan-Teh Chang <wtc@google.com>
Mon, 04 May 2015 10:19:05 -0700
changeset 11454 fc6870938172e7d8ebc502badca7634dc737a8cc
parent 11453 2c05e861ce070a1c29083b00f987cc930974909d
child 11455 b3e011d5745b3b1357fdae63c71e3204251aff11
push id634
push userwtc@google.com
push dateMon, 04 May 2015 17:19:14 +0000
bugs1125025
Bug 1125025: Mark ec_GFp_pt_dbl_jm and ec_GFp_pt_add_jm_aff as static. R=rrelyea.
lib/freebl/ecl/ecp_jm.c
--- a/lib/freebl/ecl/ecp_jm.c
+++ b/lib/freebl/ecl/ecp_jm.c
@@ -11,17 +11,17 @@
 
 /* Computes R = 2P.  Elliptic curve points P and R can be identical.  Uses 
  * Modified Jacobian coordinates.
  *
  * Assumes input is already field-encoded using field_enc, and returns 
  * output that is still field-encoded.
  *
  */
-mp_err
+static mp_err
 ec_GFp_pt_dbl_jm(const mp_int *px, const mp_int *py, const mp_int *pz,
 				 const mp_int *paz4, mp_int *rx, mp_int *ry, mp_int *rz,
 				 mp_int *raz4, mp_int scratch[], const ECGroup *group)
 {
 	mp_err res = MP_OKAY;
 	mp_int *t0, *t1, *M, *S;
 
 	t0 = &scratch[0];
@@ -81,17 +81,17 @@ ec_GFp_pt_dbl_jm(const mp_int *px, const
 	return res;
 }
 
 /* Computes R = P + Q where R is (rx, ry, rz), P is (px, py, pz) and Q is
  * (qx, qy, 1).  Elliptic curve points P, Q, and R can all be identical.
  * Uses mixed Modified_Jacobian-affine coordinates. Assumes input is
  * already field-encoded using field_enc, and returns output that is still
  * field-encoded. */
-mp_err
+static mp_err
 ec_GFp_pt_add_jm_aff(const mp_int *px, const mp_int *py, const mp_int *pz,
 					 const mp_int *paz4, const mp_int *qx,
 					 const mp_int *qy, mp_int *rx, mp_int *ry, mp_int *rz,
 					 mp_int *raz4, mp_int scratch[], const ECGroup *group)
 {
 	mp_err res = MP_OKAY;
 	mp_int *A, *B, *C, *D, *C2, *C3;