Lines Matching refs:k2
114 ec_pts_mul_basic(const mp_int *k1, const mp_int *k2, const mp_int *px, in ec_pts_mul_basic() argument
123 && ((k2 == NULL) || (px == NULL) in ec_pts_mul_basic()
128 return ECPoint_mul(group, k2, px, py, rx, ry); in ec_pts_mul_basic()
129 } else if ((k2 == NULL) || (px == NULL) || (py == NULL)) { in ec_pts_mul_basic()
139 MP_CHECKOK(ECPoint_mul(group, k2, px, py, rx, ry)); in ec_pts_mul_basic()
169 ec_pts_mul_simul_w2(const mp_int *k1, const mp_int *k2, const mp_int *px, in ec_pts_mul_simul_w2() argument
181 && ((k2 == NULL) || (px == NULL) in ec_pts_mul_simul_w2()
186 return ECPoint_mul(group, k2, px, py, rx, ry); in ec_pts_mul_simul_w2()
187 } else if ((k2 == NULL) || (px == NULL) || (py == NULL)) { in ec_pts_mul_simul_w2()
209 if (mpl_significant_bits(k1) < mpl_significant_bits(k2)) { in ec_pts_mul_simul_w2()
210 a = k2; in ec_pts_mul_simul_w2()
225 b = k2; in ec_pts_mul_simul_w2()
319 ECPoints_mul(const ECGroup *group, const mp_int *k1, const mp_int *k2, in ECPoints_mul() argument
343 if (k2 != NULL) { in ECPoints_mul()
344 if (mp_cmp(k2, &group->order) >= 0) { in ECPoints_mul()
345 MP_CHECKOK(mp_init(&k2t, FLAG(k2))); in ECPoints_mul()
346 MP_CHECKOK(mp_mod(k2, &group->order, &k2t)); in ECPoints_mul()
349 k2p = k2; in ECPoints_mul()
352 k2p = k2; in ECPoints_mul()