Home
last modified time | relevance | path

Searched refs:isProbablePrime (Results 1 – 12 of 12) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
DDSAParametersGenerator.java160 if (!isProbablePrime(q)) in generateParameters_FIPS186_2()
196 if (isProbablePrime(p)) in generateParameters_FIPS186_2()
264 if (!isProbablePrime(q)) in generateParameters_FIPS186_3()
312 if (isProbablePrime(p)) in generateParameters_FIPS186_3()
339 private boolean isProbablePrime(BigInteger x) in isProbablePrime() method in DSAParametersGenerator
346 return x.isProbablePrime(certainty); in isProbablePrime()
DDHParametersHelper.java44 if (!p.isProbablePrime(certainty)) in generateSafePrimes()
49 if (certainty > 2 && !q.isProbablePrime(certainty - 2)) in generateSafePrimes()
DRSAKeyPairGenerator.java175 if (!isProbablePrime(p)) in chooseRandomPrime()
191 protected boolean isProbablePrime(BigInteger x) in isProbablePrime() method in RSAKeyPairGenerator
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/generators/
DDSAParametersGenerator.java162 if (!isProbablePrime(q)) in generateParameters_FIPS186_2()
198 if (isProbablePrime(p)) in generateParameters_FIPS186_2()
266 if (!isProbablePrime(q)) in generateParameters_FIPS186_3()
314 if (isProbablePrime(p)) in generateParameters_FIPS186_3()
341 private boolean isProbablePrime(BigInteger x) in isProbablePrime() method in DSAParametersGenerator
348 return x.isProbablePrime(certainty); in isProbablePrime()
DDHParametersHelper.java45 if (!p.isProbablePrime(certainty)) in generateSafePrimes()
50 if (certainty > 2 && !q.isProbablePrime(certainty - 2)) in generateSafePrimes()
DRSAKeyPairGenerator.java177 if (!isProbablePrime(p)) in chooseRandomPrime()
193 protected boolean isProbablePrime(BigInteger x) in isProbablePrime() method in RSAKeyPairGenerator
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DRsaKeyTest.java1409 assertTrue(p.isProbablePrime(certainty)); in checkPrivateCrtKey()
1410 assertTrue(q.isProbablePrime(certainty)); in checkPrivateCrtKey()
DDhTest.java277 assertTrue(p.isProbablePrime(4)); in testKeyPair()
291 boolean isSafePrime = p.shiftRight(1).isProbablePrime(4); in testKeyPair()
DBigIntegerTest.java451 if (n.isProbablePrime(certainty)) { in testIsProbablePrime()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
DBigIntegers.java178 while (!rv.isProbablePrime(certainty)); in createRandomPrime()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/util/
DBigIntegers.java180 while (!rv.isProbablePrime(certainty)); in createRandomPrime()
/external/v8/benchmarks/
Dcrypto.js766 while(!this.isProbablePrime(b)) {
1333 BigInteger.prototype.isProbablePrime = bnIsProbablePrime; method in BigInteger
1602 …btract(BigInteger.ONE).gcd(ee).compareTo(BigInteger.ONE) == 0 && this.p.isProbablePrime(10)) break;
1606 …btract(BigInteger.ONE).gcd(ee).compareTo(BigInteger.ONE) == 0 && this.q.isProbablePrime(10)) break;