Lines Matching refs:mask
127 int ret = 0, bit, bytes, mask; in BN_rand() local
151 mask = 0xff << (bit + 1); in BN_rand()
175 buf[0] &= ~mask; in BN_rand()
211 crypto_word_t mask = 0; in bn_less_than_word() local
213 mask |= a[i]; in bn_less_than_word()
216 mask = constant_time_is_zero_w(mask); in bn_less_than_word()
217 mask &= constant_time_lt_w(a[0], b); in bn_less_than_word()
218 return constant_time_select_int(mask, 1, 0); in bn_less_than_word()
246 BN_ULONG mask = max_exclusive[words - 1]; in bn_rand_range_words() local
248 mask |= mask >> 1; in bn_rand_range_words()
249 mask |= mask >> 2; in bn_rand_range_words()
250 mask |= mask >> 4; in bn_rand_range_words()
251 mask |= mask >> 8; in bn_rand_range_words()
252 mask |= mask >> 16; in bn_rand_range_words()
254 mask |= mask >> 32; in bn_rand_range_words()
271 out[words - 1] &= mask; in bn_rand_range_words()