Home | History | Annotate | Download | only in bn

Lines Matching refs:top

209 	 * the top bit being set.  It was caused by an error in BN_div
212 /* if ((m->d[m->top-1]&BN_TBIT) && BN_is_odd(m)) */
217 if (a->top == 1 && !a->neg && (BN_get_flags(p, BN_FLG_CONSTTIME) == 0))
309 wstart=bits-1; /* The top bit of the window */
455 wstart=bits-1; /* The top bit of the window */
525 static int MOD_EXP_CTIME_COPY_TO_PREBUF(BIGNUM *b, int top, unsigned char *buf, int idx, int width)
529 if (bn_wexpand(b, top) == NULL)
531 while (b->top < top)
533 b->d[b->top++] = 0;
536 for (i = 0, j=idx; i < top * sizeof b->d[0]; i++, j+=width)
545 static int MOD_EXP_CTIME_COPY_FROM_PREBUF(BIGNUM *b, int top, unsigned char *buf, int idx, int width)
549 if (bn_wexpand(b, top) == NULL)
552 for (i=0, j=idx; i < top * sizeof b->d[0]; i++, j+=width)
557 b->top = top;
576 int top;
591 top = m->top;
628 powerbufLen = sizeof(m->d[0])*top*numPowers;
639 if (!MOD_EXP_CTIME_COPY_TO_PREBUF(r, top, powerbuf, 0, numPowers)) goto err;
656 if (!MOD_EXP_CTIME_COPY_TO_PREBUF(am, top, powerbuf, 1, numPowers)) goto err;
670 if (!MOD_EXP_CTIME_COPY_TO_PREBUF(computeTemp, top, powerbuf, i, numPowers)) goto err;
686 idx=bits-1; /* The top bit of the window */
703 if (!MOD_EXP_CTIME_COPY_FROM_PREBUF(computeTemp, top, powerbuf, wvalue, numPowers)) goto err;
764 if (m->top == 1)
931 wstart=bits-1; /* The top bit of the window */