Lines Matching refs:wstart
432 int i, j, ret = 0, wstart, window; in mod_exp_recp() local
496 wstart = bits - 1; // The top bit of the window in mod_exp_recp()
506 if (!BN_is_bit_set(p, wstart)) { in mod_exp_recp()
512 if (wstart == 0) { in mod_exp_recp()
515 wstart--; in mod_exp_recp()
526 if (wstart - i < 0) { in mod_exp_recp()
529 if (BN_is_bit_set(p, wstart - i)) { in mod_exp_recp()
553 wstart -= wend + 1; in mod_exp_recp()
555 if (wstart < 0) { in mod_exp_recp()
658 int wstart = bits - 1; // The top bit of the window. in BN_mod_exp_mont() local
660 if (!BN_is_bit_set(p, wstart)) { in BN_mod_exp_mont()
664 if (wstart == 0) { in BN_mod_exp_mont()
667 wstart--; in BN_mod_exp_mont()
674 for (int i = 1; i < window && i <= wstart; i++) { in BN_mod_exp_mont()
675 if (BN_is_bit_set(p, wstart - i)) { in BN_mod_exp_mont()
702 if (wstart == wsize) { in BN_mod_exp_mont()
705 wstart -= wsize + 1; in BN_mod_exp_mont()
762 unsigned wstart = bits - 1; // The top bit of the window. in bn_mod_exp_mont_small() local
764 if (!bn_is_bit_set_words(p, num_p, wstart)) { in bn_mod_exp_mont_small()
768 if (wstart == 0) { in bn_mod_exp_mont_small()
771 wstart--; in bn_mod_exp_mont_small()
778 for (unsigned i = 1; i < window && i <= wstart; i++) { in bn_mod_exp_mont_small()
779 if (bn_is_bit_set_words(p, num_p, wstart - i)) { in bn_mod_exp_mont_small()
801 if (wstart == wsize) { in bn_mod_exp_mont_small()
804 wstart -= wsize + 1; in bn_mod_exp_mont_small()