Lines Matching defs:k2
77 * Computes scalar point multiplication pointQ = k1 * G + k2 * pointP for
81 ec_points_mul(const ECParams *params, const mp_int *k1, const mp_int *k2,
110 if (k2 != NULL) {
111 mp_tohex(k2, mpstr);
112 printf("ec_points_mul: scalar k2: %s\n", mpstr);
113 mp_todecimal(k2, mpstr);
114 printf("ec_points_mul: scalar k2: %s (dec)\n", mpstr);
155 if ((k2 != NULL) && (pointP != NULL)) {
184 irr_arr[2] = params->fieldID.k2;
194 if ((k2 != NULL) && (pointP != NULL)) {
195 CHECK_MPI_OK( ECPoints_mul(group, k1, k2, &Px, &Py, &Qx, &Qy) );
290 key->ecParams.fieldID.k2 = ecParams->fieldID.k2;