/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
DSAPublicKeyParameters.java | 27 && ONE.equals(y.modPow(params.getQ(), params.getP())))
|
DHPublicKeyParameters.java | 37 if (ONE.equals(y.modPow(dhParams.getQ(), dhParams.getP())))
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/params/ |
DSAPublicKeyParameters.java | 31 && ONE.equals(y.modPow(params.getQ(), params.getP())))
|
DHPublicKeyParameters.java | 41 if (ONE.equals(y.modPow(dhParams.getQ(), dhParams.getP())))
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/ |
RSACoreEngine.java | 191 mP = (input.remainder(p)).modPow(dP, p); 194 mQ = (input.remainder(q)).modPow(dQ, q); 209 return input.modPow(
|
RSABlindedEngine.java | 109 BigInteger blindedInput = r.modPow(e, m).multiply(input).mod(m); 115 if (!input.equals(result.modPow(e, m)))
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/ |
DSASigner.java | 106 BigInteger r = params.getG().modPow(k.add(getRandomizer(q, random)), params.getP()).mod(q); 146 u1 = params.getG().modPow(u1, p); 147 u2 = ((DSAPublicKeyParameters)key).getY().modPow(u2, p);
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/engines/ |
RSACoreEngine.java | 192 mP = (input.remainder(p)).modPow(dP, p); 195 mQ = (input.remainder(q)).modPow(dQ, q); 210 return input.modPow(
|
RSABlindedEngine.java | 111 BigInteger blindedInput = r.modPow(e, m).multiply(input).mod(m); 117 if (!input.equals(result.modPow(e, m)))
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/agreement/ |
DHBasicAgreement.java | 79 BigInteger result = peerY.modPow(key.getX(), p);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/ |
DHKeyGeneratorHelper.java | 65 return dhParams.getG().modPow(x, dhParams.getP());
|
DHParametersHelper.java | 93 // while (g.modPow(TWO, p).equals(ONE) || g.modPow(q, p).equals(ONE)); 103 g = h.modPow(TWO, p);
|
DSAKeyPairGenerator.java | 67 return g.modPow(x, p);
|
DSAParametersGenerator.java | 214 BigInteger g = h.modPow(e, p); 374 BigInteger g = W.modPow(e, p);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/ |
DHUtil.java | 17 BigInteger y = dhParams.getG().modPow(x, dhParams.getP());
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/generators/ |
DHKeyGeneratorHelper.java | 66 return dhParams.getG().modPow(x, dhParams.getP());
|
DHParametersHelper.java | 94 // while (g.modPow(TWO, p).equals(ONE) || g.modPow(q, p).equals(ONE)); 104 g = h.modPow(TWO, p);
|
DSAKeyPairGenerator.java | 69 return g.modPow(x, p);
|
DSAParametersGenerator.java | 216 BigInteger g = h.modPow(e, p); 376 BigInteger g = W.modPow(e, p);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ |
Primes.java | 189 BigInteger z = b.modPow(m, w); 201 z = z.modPow(TWO, w); 222 z = z.modPow(TWO, w); 447 BigInteger z = b.modPow(m, w); 458 z = z.modPow(TWO, w); 561 BigInteger z = a.modPow(tx2, c); 563 if (c.gcd(z.subtract(ONE)).equals(ONE) && z.modPow(c0, c).equals(ONE))
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ |
Primes.java | 193 BigInteger z = b.modPow(m, w); 205 z = z.modPow(TWO, w); 226 z = z.modPow(TWO, w); 451 BigInteger z = b.modPow(m, w); 462 z = z.modPow(TWO, w); 565 BigInteger z = a.modPow(tx2, c); 567 if (c.gcd(z.subtract(ONE)).equals(ONE) && z.modPow(c0, c).equals(ONE))
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/agreement/ |
DHBasicAgreement.java | 81 BigInteger result = peerY.modPow(key.getX(), p);
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/dh/ |
DHUtil.java | 18 BigInteger y = dhParams.getG().modPow(x, dhParams.getP());
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/signers/ |
DSASigner.java | 108 BigInteger r = params.getG().modPow(k.add(getRandomizer(q, random)), params.getP()).mod(q); 148 u1 = params.getG().modPow(u1, p); 149 u2 = ((DSAPublicKeyParameters)key).getY().modPow(u2, p);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
ECFieldElement.java | 260 return checkSqrt(new Fp(q, r, x.modPow(e, q))); 265 BigInteger t1 = x.modPow(q.shiftRight(3), q); 275 BigInteger t4 = ECConstants.TWO.modPow(q.shiftRight(2), q); 285 if (!(x.modPow(legendreExponent, q).equals(ECConstants.ONE))) 305 || !modReduce(P.multiply(P).subtract(fourX)).modPow(legendreExponent, q).equals(qMinusOne));
|