Lines Matching refs:top
97 a->top = 0; in BN_clear()
157 .top = 1,
187 while (a->top > 0 && a->d[a->top - 1] == 0) in bn_correct_top()
188 a->top--; in bn_correct_top()
295 if (!bn_wexpand(a, b->top)) in BN_copy()
298 bn_copy_words(a->d, b->d, b->top); in BN_copy()
303 a->top = b->top; in BN_copy()
328 tmp_top = a->top; in BN_swap()
333 a->top = b->top; in BN_swap()
338 b->top = tmp_top; in BN_swap()
352 if (a->top > 1) in BN_get_word()
354 else if (a->top == 1) in BN_get_word()
368 a->top = (w ? 1 : 0); in BN_set_word()
378 if (a->top < b->top) in BN_ucmp()
380 if (a->top > b->top) in BN_ucmp()
383 for (i = a->top - 1; i >= 0; i--) { in BN_ucmp()
423 if (a->top <= i) { in BN_set_bit()
426 for (k = a->top; k < i + 1; k++) in BN_set_bit()
428 a->top = i + 1; in BN_set_bit()
446 if (a->top <= i) in BN_clear_bit()
467 if (a->top <= i) in BN_is_bit_set()
483 if (w >= a->top) in BN_mask_bits()
486 a->top = w; in BN_mask_bits()
488 a->top = w + 1; in BN_mask_bits()
527 t = (a->top^b->top) & condition; in BN_consttime_swap()
528 a->top ^= t; in BN_consttime_swap()
529 b->top ^= t; in BN_consttime_swap()
578 if (a->top > words || b->top > words) { in BN_swap_ct()
587 t = (a->top ^ b->top) & condition; in BN_swap_ct()
588 a->top ^= t; in BN_swap_ct()
589 b->top ^= t; in BN_swap_ct()
615 a->top = 0; in BN_zero()
629 return (a->top == 1 && a->d[0] == w) || (w == 0 && a->top == 0); in BN_abs_is_word()
639 for (i = 0; i < bn->top; i++) in BN_is_zero()
663 return a->top > 0 && (a->d[0] & 1); in BN_is_odd()