Lines Matching refs:k2
112 ec_pts_mul_basic(const mp_int *k1, const mp_int *k2, const mp_int *px, in ec_pts_mul_basic() argument
121 && ((k2 == NULL) || (px == NULL) in ec_pts_mul_basic()
126 return ECPoint_mul(group, k2, px, py, rx, ry); in ec_pts_mul_basic()
127 } else if ((k2 == NULL) || (px == NULL) || (py == NULL)) { in ec_pts_mul_basic()
137 MP_CHECKOK(ECPoint_mul(group, k2, px, py, rx, ry)); in ec_pts_mul_basic()
167 ec_pts_mul_simul_w2(const mp_int *k1, const mp_int *k2, const mp_int *px, in ec_pts_mul_simul_w2() argument
179 && ((k2 == NULL) || (px == NULL) in ec_pts_mul_simul_w2()
184 return ECPoint_mul(group, k2, px, py, rx, ry); in ec_pts_mul_simul_w2()
185 } else if ((k2 == NULL) || (px == NULL) || (py == NULL)) { in ec_pts_mul_simul_w2()
207 if (mpl_significant_bits(k1) < mpl_significant_bits(k2)) { in ec_pts_mul_simul_w2()
208 a = k2; in ec_pts_mul_simul_w2()
223 b = k2; in ec_pts_mul_simul_w2()
317 ECPoints_mul(const ECGroup *group, const mp_int *k1, const mp_int *k2, in ECPoints_mul() argument
341 if (k2 != NULL) { in ECPoints_mul()
342 if (mp_cmp(k2, &group->order) >= 0) { in ECPoints_mul()
343 MP_CHECKOK(mp_init(&k2t, FLAG(k2))); in ECPoints_mul()
344 MP_CHECKOK(mp_mod(k2, &group->order, &k2t)); in ECPoints_mul()
347 k2p = k2; in ECPoints_mul()
350 k2p = k2; in ECPoints_mul()