Lines Matching refs:kPrimes
123 static const uint16_t kPrimes[] = { variable
395 return OPENSSL_ARRAY_SIZE(kPrimes); in num_trial_division_primes()
397 return OPENSSL_ARRAY_SIZE(kPrimes) / 4; in num_trial_division_primes()
584 if (bn_mod_u16_consttime(bn, kPrimes[i]) == 0) { in bn_trial_division()
585 *out = kPrimes[i]; in bn_trial_division()
951 uint16_t mods[OPENSSL_ARRAY_SIZE(kPrimes)]; in probable_prime()
954 BN_ULONG maxdelta = BN_MASK2 - kPrimes[num_primes - 1]; in probable_prime()
964 mods[i] = bn_mod_u16_consttime(rnd, kPrimes[i]); in probable_prime()
995 for (size_t i = 1; i < num_primes && kPrimes[i] < rnd_word; i++) { in probable_prime()
996 if ((mods[i] + delta) % kPrimes[i] == 0) { in probable_prime()
1008 if (((mods[i] + delta) % kPrimes[i]) <= 1) { in probable_prime()
1065 if (bn_mod_u16_consttime(rnd, kPrimes[i]) <= 1) { in probable_prime_dh()
1138 if (bn_mod_u16_consttime(p, kPrimes[i]) == 0 || in probable_prime_dh_safe()
1139 bn_mod_u16_consttime(q, kPrimes[i]) == 0) { in probable_prime_dh_safe()