Lines Matching defs:k2
109 * k2 * P(x, y), where G is the generator (base point) of the group of
110 * points on the elliptic curve. Allows k1 = NULL or { k2, P } = NULL.
113 ec_pts_mul_basic(const mp_int *k1, const mp_int *k2, const mp_int *px,
122 && ((k2 == NULL) || (px == NULL)
127 return ECPoint_mul(group, k2, px, py, rx, ry);
128 } else if ((k2 == NULL) || (px == NULL) || (py == NULL)) {
138 MP_CHECKOK(ECPoint_mul(group, k2, px, py, rx, ry));
161 * k2 * P(x, y), where G is the generator (base point) of the group of
162 * points on the elliptic curve. Allows k1 = NULL or { k2, P } = NULL.
168 ec_pts_mul_simul_w2(const mp_int *k1, const mp_int *k2, const mp_int *px,
180 && ((k2 == NULL) || (px == NULL)
185 return ECPoint_mul(group, k2, px, py, rx, ry);
186 } else if ((k2 == NULL) || (px == NULL) || (py == NULL)) {
207 /* assign {k1, k2} = {a, b} such that len(a) >= len(b) */
208 if (mpl_significant_bits(k1) < mpl_significant_bits(k2)) {
209 a = k2;
224 b = k2;
314 * k2 * P(x, y), where G is the generator (base point) of the group of
315 * points on the elliptic curve. Allows k1 = NULL or { k2, P } = NULL.
318 ECPoints_mul(const ECGroup *group, const mp_int *k1, const mp_int *k2,
342 if (k2 != NULL) {
343 if (mp_cmp(k2, &group->order) >= 0) {
344 MP_CHECKOK(mp_init(&k2t, FLAG(k2)));
345 MP_CHECKOK(mp_mod(k2, &group->order, &k2t));
348 k2p = k2;
351 k2p = k2;