Lines Matching refs:top

261     if (a->top < b->top) {  in BN_GF2m_add()
269 if (bn_wexpand(r, at->top) == NULL) in BN_GF2m_add()
272 for (i = 0; i < bt->top; i++) { in BN_GF2m_add()
275 for (; i < at->top; i++) { in BN_GF2m_add()
279 r->top = at->top; in BN_GF2m_add()
312 if (!bn_wexpand(r, a->top)) in BN_GF2m_mod_arr()
314 for (j = 0; j < a->top; j++) { in BN_GF2m_mod_arr()
317 r->top = a->top; in BN_GF2m_mod_arr()
323 for (j = r->top - 1; j > dN;) { in BN_GF2m_mod_arr()
429 zlen = a->top + b->top + 4; in BN_GF2m_mod_mul_arr()
432 s->top = zlen; in BN_GF2m_mod_mul_arr()
437 for (j = 0; j < b->top; j += 2) { in BN_GF2m_mod_mul_arr()
439 y1 = ((j + 1) == b->top) ? 0 : b->d[j + 1]; in BN_GF2m_mod_mul_arr()
440 for (i = 0; i < a->top; i += 2) { in BN_GF2m_mod_mul_arr()
442 x1 = ((i + 1) == a->top) ? 0 : a->d[i + 1]; in BN_GF2m_mod_mul_arr()
503 if (!bn_wexpand(s, 2 * a->top)) in BN_GF2m_mod_sqr_arr()
506 for (i = a->top - 1; i >= 0; i--) { in BN_GF2m_mod_sqr_arr()
511 s->top = 2 * a->top; in BN_GF2m_mod_sqr_arr()
623 int top = p->top; in BN_GF2m_mod_inv_vartime() local
626 if (!bn_wexpand(u, top)) in BN_GF2m_mod_inv_vartime()
629 for (i = u->top; i < top; i++) in BN_GF2m_mod_inv_vartime()
631 u->top = top; in BN_GF2m_mod_inv_vartime()
632 if (!bn_wexpand(b, top)) in BN_GF2m_mod_inv_vartime()
636 for (i = 1; i < top; i++) in BN_GF2m_mod_inv_vartime()
638 b->top = top; in BN_GF2m_mod_inv_vartime()
639 if (!bn_wexpand(c, top)) in BN_GF2m_mod_inv_vartime()
642 for (i = 0; i < top; i++) in BN_GF2m_mod_inv_vartime()
644 c->top = top; in BN_GF2m_mod_inv_vartime()
657 for (i = 0; i < top - 1; i++) { in BN_GF2m_mod_inv_vartime()
692 for (i = 0; i < top; i++) { in BN_GF2m_mod_inv_vartime()
1156 for (i = a->top - 1; i >= 0; i--) { in BN_GF2m_poly2arr()