Lines Matching defs:k2
110 * k2 * P(x, y), where G is the generator (base point) of the group of
111 * points on the elliptic curve. Allows k1 = NULL or { k2, P } = NULL.
114 ec_pts_mul_basic(const mp_int *k1, const mp_int *k2, const mp_int *px,
123 && ((k2 == NULL) || (px == NULL)
128 return ECPoint_mul(group, k2, px, py, rx, ry);
129 } else if ((k2 == NULL) || (px == NULL) || (py == NULL)) {
139 MP_CHECKOK(ECPoint_mul(group, k2, px, py, rx, ry));
162 * k2 * P(x, y), where G is the generator (base point) of the group of
163 * points on the elliptic curve. Allows k1 = NULL or { k2, P } = NULL.
169 ec_pts_mul_simul_w2(const mp_int *k1, const mp_int *k2, const mp_int *px,
181 && ((k2 == NULL) || (px == NULL)
186 return ECPoint_mul(group, k2, px, py, rx, ry);
187 } else if ((k2 == NULL) || (px == NULL) || (py == NULL)) {
208 /* assign {k1, k2} = {a, b} such that len(a) >= len(b) */
209 if (mpl_significant_bits(k1) < mpl_significant_bits(k2)) {
210 a = k2;
225 b = k2;
315 * k2 * P(x, y), where G is the generator (base point) of the group of
316 * points on the elliptic curve. Allows k1 = NULL or { k2, P } = NULL.
319 ECPoints_mul(const ECGroup *group, const mp_int *k1, const mp_int *k2,
343 if (k2 != NULL) {
344 if (mp_cmp(k2, &group->order) >= 0) {
345 MP_CHECKOK(mp_init(&k2t, FLAG(k2)));
346 MP_CHECKOK(mp_mod(k2, &group->order, &k2t));
349 k2p = k2;
352 k2p = k2;