/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/ |
BCDHPublicKey.java | 38 this.dhSpec = new DHParameterSpec(spec.getP(), spec.getG()); 52 this.dhSpec = new DHParameterSpec(params.getParameters().getP(), params.getParameters().getG(), params.getParameters().getL()); 90 this.dhSpec = new DHParameterSpec(params.getP(), params.getG(), params.getL().intValue()); 94 this.dhSpec = new DHParameterSpec(params.getP(), params.getG()); 101 this.dhSpec = new DHParameterSpec(params.getP().getValue(), params.getG().getValue()); 126 return KeyUtil.getEncodedSubjectPublicKeyInfo(new AlgorithmIdentifier(PKCSObjectIdentifiers.dhKeyAgreement, new DHParameter(dhSpec.getP(), dhSpec.getG(), dhSpec.getL()).toASN1Primitive()), new ASN1Integer(y)); 165 ^ this.getParams().getP().hashCode() ^ this.getParams().getL(); 180 && this.getParams().getP().equals(other.getParams().getP()) 200 out.writeObject(dhSpec.getP()); [all...] |
AlgorithmParametersSpi.java | 49 DHParameter dhP = new DHParameter(currentSpec.getP(), currentSpec.getG(), currentSpec.getL()); 106 currentSpec = new DHParameterSpec(dhP.getP(), dhP.getG(), dhP.getL().intValue()); 110 currentSpec = new DHParameterSpec(dhP.getP(), dhP.getG());
|
/libcore/luni/src/main/java/java/security/spec/ |
DSAPrivateKeySpec.java | 70 public BigInteger getP() {
|
DSAPublicKeySpec.java | 70 public BigInteger getP() {
|
/libcore/luni/src/main/java/javax/crypto/spec/ |
DHParameterSpec.java | 70 public BigInteger getP() {
|
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
DHParameterSpecTest.java | 51 assertEquals("The value returned by getP() must be " 53 dhps.getP(), ps[i]); 60 assertEquals("The value returned by getP() must be " 62 dhps.getP(), ps[i]);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/agreement/ |
DHBasicAgreement.java | 52 return (key.getParameters().getP().bitLength() + 7) / 8; 69 return pub.getY().modPow(key.getX(), dhParams.getP());
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/ |
DHKeyGeneratorHelper.java | 22 BigInteger p = dhParams.getP(); 49 return dhParams.getG().modPow(x, dhParams.getP());
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
DHUtil.java | 30 new DHParameters(k.getParams().getP(), k.getParams().getG(), null, k.getParams().getL())); 45 new DHParameters(k.getParams().getP(), k.getParams().getG(), null, k.getParams().getL()));
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
DHUtil.java | 30 new DHParameters(k.getParams().getP(), k.getParams().getG(), null, k.getParams().getL())); 45 new DHParameters(k.getParams().getP(), k.getParams().getG(), null, k.getParams().getL()));
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
DHParameterSpecTest.java | 51 assertEquals("The value returned by getP() must be " 53 dhps.getP(), ps[i]); 60 assertEquals("The value returned by getP() must be " 62 dhps.getP(), ps[i]);
|
/libcore/luni/src/test/java/tests/security/interfaces/ |
DSAKeyTest.java | 52 assertEquals("P differ", expected.getP(), actual.getP());
|
DSAParamsTest.java | 41 * #getP() 45 assertEquals("Invalid P", p, params.getP());
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
DHParameters.java | 107 public BigInteger getP() 182 return pm.getP().equals(p) && pm.getG().equals(g); 187 return getP().hashCode() ^ getG().hashCode() ^ (getQ() != null ? getQ().hashCode() : 0);
|
RSAPrivateCrtKeyParameters.java | 43 public BigInteger getP()
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/ |
DSAParameterSpecTest.java | 69 * getP() test 77 assertEquals(1, dps.getP().intValue());
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/ |
DSASigner.java | 93 BigInteger r = params.getG().modPow(k, params.getP()).mod(params.getQ()); 137 u1 = params.getG().modPow(u1, params.getP()); 138 u2 = ((DSAPublicKeyParameters)key).getY().modPow(u2, params.getP()); 140 BigInteger v = u1.multiply(u2).mod(params.getP()).mod(params.getQ());
|
/libcore/luni/src/test/java/tests/security/spec/ |
DSAParameterSpecTest.java | 62 * getP() test 70 assertEquals(1, dps.getP().intValue());
|
DSAPrivateKeySpecTest.java | 64 * getP() test 73 assertEquals(2, dpks.getP().intValue());
|
DSAPublicKeySpecTest.java | 64 * Test for <code>getP</code> method 73 assertEquals(2, dpks.getP().intValue());
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/ |
AlgorithmParametersSpi.java | 46 DSAParameter dsaP = new DSAParameter(currentSpec.getP(), currentSpec.getQ(), currentSpec.getG()); 101 currentSpec = new DSAParameterSpec(dsaP.getP(), dsaP.getQ(), dsaP.getG());
|
DSAUtil.java | 52 new DSAParameters(k.getParams().getP(), k.getParams().getQ(), k.getParams().getG())); 67 new DSAParameters(k.getParams().getP(), k.getParams().getQ(), k.getParams().getG()));
|
/external/libcxx/test/utilities/tuple/tuple.tuple/tuple.elem/ |
get_non_const.pass.cpp | 33 constexpr std::tuple<int, int> getP () { return { 3, 4 }; } 77 static_assert(std::get<1>(getP()) == 4, "");
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/tuple/tuple.tuple/tuple.elem/ |
get_non_const.pass.cpp | 33 constexpr std::tuple<int, int> getP () { return { 3, 4 }; } 77 static_assert(std::get<1>(getP()) == 4, "");
|
/external/conscrypt/src/main/java/org/conscrypt/ |
OpenSSLDHKeyFactory.java | 87 return (T) new DHPublicKeySpec(dhKey.getY(), params.getP(), params.getG()); 95 return (T) new DHPublicKeySpec(dhKey.getY(), params.getP(), params.getG()); 99 return (T) new DHPrivateKeySpec(dhKey.getX(), params.getP(), params.getG()); 108 return (T) new DHPrivateKeySpec(dhKey.getX(), params.getP(), params.getG()); 147 BigInteger p = params.getP(); 161 BigInteger p = params.getP();
|