/external/bouncycastle/src/main/java/org/bouncycastle/crypto/signers/ |
DSASigner.java | 61 BigInteger m = calculateE(params.getQ(), message); 63 int qBitLength = params.getQ().bitLength(); 69 while (k.compareTo(params.getQ()) >= 0); 71 BigInteger r = params.getG().modPow(k, params.getP()).mod(params.getQ()); 73 k = k.modInverse(params.getQ()).multiply( 76 BigInteger s = k.mod(params.getQ()); 97 BigInteger m = calculateE(params.getQ(), message); 100 if (zero.compareTo(r) >= 0 || params.getQ().compareTo(r) <= 0) 105 if (zero.compareTo(s) >= 0 || params.getQ().compareTo(s) <= 0) 110 BigInteger w = s.modInverse(params.getQ()); [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/params/ |
ECPublicKeyParameters.java | 18 public ECPoint getQ()
|
DHParameters.java | 116 public BigInteger getQ() 166 if (this.getQ() != null) 168 if (!this.getQ().equals(pm.getQ())) 175 if (pm.getQ() != null) 186 return getP().hashCode() ^ getG().hashCode() ^ (getQ() != null ? getQ().hashCode() : 0);
|
DSAParameters.java | 42 public BigInteger getQ() 67 return (pm.getP().equals(p) && pm.getQ().equals(q) && pm.getG().equals(g)); 72 return getP().hashCode() ^ getQ().hashCode() ^ getG().hashCode();
|
RSAPrivateCrtKeyParameters.java | 48 public BigInteger getQ()
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/interfaces/ |
ECPublicKey.java | 16 public ECPoint getQ();
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
JDKDSAPrivateKey.java | 49 this.dsaSpec = new DSAParameterSpec(spec.getP(), spec.getQ(), spec.getG()); 59 this.dsaSpec = new DSAParameterSpec(params.getP(), params.getQ(), params.getG()); 66 this.dsaSpec = new DSAParameterSpec(params.getParameters().getP(), params.getParameters().getQ(), params.getParameters().getG()); 92 PrivateKeyInfo info = new PrivateKeyInfo(new AlgorithmIdentifier(X9ObjectIdentifiers.id_dsa, new DSAParameter(dsaSpec.getP(), dsaSpec.getQ(), dsaSpec.getG()).getDERObject()), new DERInteger(getX())); 120 && this.getParams().getQ().equals(other.getParams().getQ()); 126 ^ this.getParams().getP().hashCode() ^ this.getParams().getQ().hashCode(); 164 out.writeObject(dsaSpec.getQ());
|
JDKDSAPublicKey.java | 34 this.dsaSpec = new DSAParameterSpec(spec.getP(), spec.getQ(), spec.getG()); 48 this.dsaSpec = new DSAParameterSpec(params.getParameters().getP(), params.getParameters().getQ(), params.getParameters().getG()); 80 this.dsaSpec = new DSAParameterSpec(params.getP(), params.getQ(), params.getG()); 106 return new SubjectPublicKeyInfo(new AlgorithmIdentifier(X9ObjectIdentifiers.id_dsa, new DSAParameter(dsaSpec.getP(), dsaSpec.getQ(), dsaSpec.getG()).getDERObject()), new DERInteger(y)).getDEREncoded(); 133 ^ this.getParams().getP().hashCode() ^ this.getParams().getQ().hashCode(); 149 && this.getParams().getQ().equals(other.getParams().getQ()); 166 out.writeObject(dsaSpec.getQ());
|
DSAUtil.java | 29 new DSAParameters(k.getParams().getP(), k.getParams().getQ(), k.getParams().getG())); 44 new DSAParameters(k.getParams().getP(), k.getParams().getQ(), k.getParams().getG()));
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/spec/ |
ECPublicKeySpec.java | 31 public ECPoint getQ()
|
/libcore/luni/src/test/java/tests/security/interfaces/ |
DSAParamsTest.java | 50 * #getQ() 54 assertEquals("Invalid Q", q, params.getQ());
|
DSAKeyTest.java | 53 assertEquals("Q differ", expected.getQ(), actual.getQ());
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/ |
EncodedKeySpec2Test.java | 69 && dsa1.getParams().getQ().equals(dsa2.getParams().getQ()); 78 && dsa1.getParams().getQ().equals(dsa2.getParams().getQ());
|
DSAParameterSpecTest.java | 81 * getQ() test 89 assertEquals(2, dps.getQ().intValue());
|
DSAPrivateKeySpecTest.java | 84 * getQ() test 93 assertEquals(3, dpks.getQ().intValue());
|
DSAPublicKeySpecTest.java | 84 * Test for <code>getQ</code> method 93 assertEquals(3, dpks.getQ().intValue());
|
/libcore/luni/src/test/java/tests/security/spec/ |
EncodedKeySpec2Test.java | 70 && dsa1.getParams().getQ().equals(dsa2.getParams().getQ()); 79 && dsa1.getParams().getQ().equals(dsa2.getParams().getQ());
|
DSAParameterSpecTest.java | 74 * getQ() test 82 assertEquals(2, dps.getQ().intValue());
|
DSAPrivateKeySpecTest.java | 77 * getQ() test 86 assertEquals(3, dpks.getQ().intValue());
|
DSAPublicKeySpecTest.java | 77 * Test for <code>getQ</code> method 86 assertEquals(3, dpks.getQ().intValue());
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/agreement/ |
ECDHBasicAgreement.java | 41 ECPoint P = pub.getQ().multiply(key.getD());
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/generators/ |
DHKeyGeneratorHelper.java | 38 BigInteger q = dhParams.getQ();
|
/libcore/luni/src/main/java/java/security/interfaces/ |
DSAParams.java | 46 public BigInteger getQ();
|
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/ |
DSAKeyFactoryImpl.java | 130 q = params.getQ(); 153 q = params.getQ(); 191 privateKey.getX(), params.getP(), params.getQ(), 206 .getY(), params.getP(), params.getQ(), params
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
KeyPairGenerator4Test.java | 119 keyPair.initialize(new DSAParameterSpec(params.getP(), params.getQ(), 137 keyPair.initialize(new DSAParameterSpec(params.getP(), params.getQ(),
|