Home
last modified time | relevance | path

Searched refs:modPow (Results 1 – 19 of 19) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/
DPrimes.java189 BigInteger z = b.modPow(m, w); in enhancedMRProbablePrimeTest()
201 z = z.modPow(TWO, w); in enhancedMRProbablePrimeTest()
222 z = z.modPow(TWO, w); in enhancedMRProbablePrimeTest()
447 BigInteger z = b.modPow(m, w); in implMRProbablePrimeToBase()
458 z = z.modPow(TWO, w); in implMRProbablePrimeToBase()
561 BigInteger z = a.modPow(tx2, c); in implSTRandomPrime()
563 if (c.gcd(z.subtract(ONE)).equals(ONE) && z.modPow(c0, c).equals(ONE)) in implSTRandomPrime()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
DRSACoreEngine.java181 mP = (input.remainder(p)).modPow(dP, p); in processBlock()
184 mQ = (input.remainder(q)).modPow(dQ, q); in processBlock()
199 return input.modPow( in processBlock()
DRSABlindedEngine.java108 BigInteger blindedInput = r.modPow(e, m).multiply(input).mod(m); in processBlock()
114 if (!input.equals(result.modPow(e, m))) in processBlock()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/
DDSASigner.java98 BigInteger r = params.getG().modPow(k, params.getP()).mod(q); in generateSignature()
138 u1 = params.getG().modPow(u1, p); in verifySignature()
139 u2 = ((DSAPublicKeyParameters)key).getY().modPow(u2, p); in verifySignature()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
DKeyAgreementSpi.java106 result = ((DHPublicKey)key).getY().modPow(x, p); in engineDoPhase()
111 result = ((DHPublicKey)key).getY().modPow(x, p); in engineDoPhase()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DECFieldElement.java251 return checkSqrt(new Fp(q, r, x.modPow(e, q))); in sqrt()
256 BigInteger t1 = x.modPow(q.shiftRight(3), q); in sqrt()
266 BigInteger t4 = ECConstants.TWO.modPow(q.shiftRight(2), q); in sqrt()
276 if (!(x.modPow(legendreExponent, q).equals(ECConstants.ONE))) in sqrt()
296 … || !modReduce(P.multiply(P).subtract(fourX)).modPow(legendreExponent, q).equals(qMinusOne)); in sqrt()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/agreement/
DDHBasicAgreement.java69 return pub.getY().modPow(key.getX(), dhParams.getP()); in calculateAgreement()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
DDHKeyGeneratorHelper.java65 return dhParams.getG().modPow(x, dhParams.getP()); in calculatePublic()
DDHParametersHelper.java106 g = h.modPow(TWO, p); in selectGenerator()
DDSAKeyPairGenerator.java67 return g.modPow(x, p); in calculatePublicKey()
DDSAParametersGenerator.java213 BigInteger g = h.modPow(e, p); in calculateGenerator_FIPS186_2()
373 BigInteger g = W.modPow(e, p); in calculateGenerator_FIPS186_3_Verifiable()
/external/v8/benchmarks/
Dcrypto.js1272 var y = a.modPow(r,this);
1329 BigInteger.prototype.modPow = bnModPow; method in BigInteger
1630 return x.modPow(this.d, this.n);
1633 var xp = x.mod(this.p).modPow(this.dmp1, this.p);
1634 var xq = x.mod(this.q).modPow(this.dmq1, this.q);
/external/robolectric/v1/lib/main/
Dandroid.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/android/ com/ ...
/external/robolectric/v3/runtime/
Dandroid-all-4.1.2_r1-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.2.2_r1.2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.3_r2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-5.1.1_r9-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dandroid-all-5.0.0_r2-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dandroid-all-4.4_r1-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...