Home | History | Annotate | Download | only in tls

Lines Matching defs:digs

141 static int s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs);
143 static int s_mp_mul_high_digs(mp_int * a, mp_int * b, mp_int * c, int digs);
146 static int fast_s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs);
518 int digs = a->used + b->used + 1;
520 if ((digs < MP_WARRAY) &&
523 res = fast_s_mp_mul_digs (a, b, c, digs);
2337 /* multiplies |a| * |b| and only computes up to digs digits of result
2341 static int s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs)
2351 if (((digs) < MP_WARRAY) &&
2354 return fast_s_mp_mul_digs (a, b, c, digs);
2358 if ((res = mp_init_size (&t, digs)) != MP_OKAY) {
2361 t.used = digs;
2369 /* limit ourselves to making digs digits of output */
2370 pb = MIN (b->used, digs - ix);
2395 /* set carry if it is placed below digs */
2396 if (ix + iy < digs) {
2426 static int fast_s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs)
2433 if (c->alloc < digs) {
2434 if ((res = mp_grow (c, digs)) != MP_OKAY) {
2440 pa = MIN(digs, a->used + b->used);
2590 /* multiplies |a| * |b| and does not compute the lower digs digits
2593 static int s_mp_mul_high_digs (mp_int * a, mp_int * b, mp_int * c, int digs)
2605 return fast_s_mp_mul_high_digs (a, b, c, digs);
2624 tmpt = &(t.dp[digs]);
2627 tmpy = b->dp + (digs - ix);
2629 for (iy = digs - ix; iy < pb; iy++) {