Home
last modified time | relevance | path

Searched refs:getParams (Results 1 – 25 of 137) sorted by relevance

123456

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/
DBCDSAPrivateKey.java44 this.dsaSpec = key.getParams(); in BCDSAPrivateKey()
98 public DSAParams getParams() in getParams() method in BCDSAPrivateKey
119 && this.getParams().getG().equals(other.getParams().getG()) in equals()
120 && this.getParams().getP().equals(other.getParams().getP()) in equals()
121 && this.getParams().getQ().equals(other.getParams().getQ()); in equals()
126 return this.getX().hashCode() ^ this.getParams().getG().hashCode() in hashCode()
127 ^ this.getParams().getP().hashCode() ^ this.getParams().getQ().hashCode(); in hashCode()
174 BigInteger y = getParams().getG().modPow(x, getParams().getP()); in toString()
176 …buf.append("DSA Private Key [").append(DSAUtil.generateKeyFingerprint(y, getParams())).append("]")… in toString()
DBCDSAPublicKey.java46 this.dsaSpec = key.getParams(); in BCDSAPublicKey()
125 public DSAParams getParams() in getParams() method in BCDSAPublicKey
140 …buf.append("DSA Public Key [").append(DSAUtil.generateKeyFingerprint(y, getParams())).append("]").… in toString()
150 return this.getY().hashCode() ^ this.getParams().getG().hashCode() in hashCode()
151 ^ this.getParams().getP().hashCode() ^ this.getParams().getQ().hashCode(); in hashCode()
172 && other.getParams() != null in equals()
173 && this.getParams().getG().equals(other.getParams().getG()) in equals()
174 && this.getParams().getP().equals(other.getParams().getP()) in equals()
175 && this.getParams().getQ().equals(other.getParams().getQ()); in equals()
179 return this.getY().equals(other.getY()) && other.getParams() == null; in equals()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/dsa/
DBCDSAPrivateKey.java48 this.dsaSpec = key.getParams(); in BCDSAPrivateKey()
102 public DSAParams getParams() in getParams() method in BCDSAPrivateKey
123 && this.getParams().getG().equals(other.getParams().getG()) in equals()
124 && this.getParams().getP().equals(other.getParams().getP()) in equals()
125 && this.getParams().getQ().equals(other.getParams().getQ()); in equals()
130 return this.getX().hashCode() ^ this.getParams().getG().hashCode() in hashCode()
131 ^ this.getParams().getP().hashCode() ^ this.getParams().getQ().hashCode(); in hashCode()
178 BigInteger y = getParams().getG().modPow(x, getParams().getP()); in toString()
180 …buf.append("DSA Private Key [").append(DSAUtil.generateKeyFingerprint(y, getParams())).append("]")… in toString()
DBCDSAPublicKey.java50 this.dsaSpec = key.getParams(); in BCDSAPublicKey()
129 public DSAParams getParams() in getParams() method in BCDSAPublicKey
144 …buf.append("DSA Public Key [").append(DSAUtil.generateKeyFingerprint(y, getParams())).append("]").… in toString()
154 return this.getY().hashCode() ^ this.getParams().getG().hashCode() in hashCode()
155 ^ this.getParams().getP().hashCode() ^ this.getParams().getQ().hashCode(); in hashCode()
176 && other.getParams() != null in equals()
177 && this.getParams().getG().equals(other.getParams().getG()) in equals()
178 && this.getParams().getP().equals(other.getParams().getP()) in equals()
179 && this.getParams().getQ().equals(other.getParams().getQ()); in equals()
183 return this.getY().equals(other.getY()) && other.getParams() == null; in equals()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DJDKDSAPrivateKey.java43 this.dsaSpec = key.getParams(); in JDKDSAPrivateKey()
106 public DSAParams getParams() in getParams() method in JDKDSAPrivateKey
127 && this.getParams().getG().equals(other.getParams().getG()) in equals()
128 && this.getParams().getP().equals(other.getParams().getP()) in equals()
129 && this.getParams().getQ().equals(other.getParams().getQ()); in equals()
134 return this.getX().hashCode() ^ this.getParams().getG().hashCode() in hashCode()
135 ^ this.getParams().getP().hashCode() ^ this.getParams().getQ().hashCode(); in hashCode()
DJDKDSAPublicKey.java42 this.dsaSpec = key.getParams(); in JDKDSAPublicKey()
117 public DSAParams getParams() in getParams() method in JDKDSAPublicKey
140 return this.getY().hashCode() ^ this.getParams().getG().hashCode() in hashCode()
141 ^ this.getParams().getP().hashCode() ^ this.getParams().getQ().hashCode(); in hashCode()
155 && this.getParams().getG().equals(other.getParams().getG()) in equals()
156 && this.getParams().getP().equals(other.getParams().getP()) in equals()
157 && this.getParams().getQ().equals(other.getParams().getQ()); in equals()
DDHUtil.java30 … new DHParameters(k.getParams().getP(), k.getParams().getG(), null, k.getParams().getL())); in generatePublicKeyParameter()
45 … new DHParameters(k.getParams().getP(), k.getParams().getG(), null, k.getParams().getL())); in generatePrivateKeyParameter()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/provider/
DJDKDSAPrivateKey.java47 this.dsaSpec = key.getParams(); in JDKDSAPrivateKey()
110 public DSAParams getParams() in getParams() method in JDKDSAPrivateKey
131 && this.getParams().getG().equals(other.getParams().getG()) in equals()
132 && this.getParams().getP().equals(other.getParams().getP()) in equals()
133 && this.getParams().getQ().equals(other.getParams().getQ()); in equals()
138 return this.getX().hashCode() ^ this.getParams().getG().hashCode() in hashCode()
139 ^ this.getParams().getP().hashCode() ^ this.getParams().getQ().hashCode(); in hashCode()
DJDKDSAPublicKey.java46 this.dsaSpec = key.getParams(); in JDKDSAPublicKey()
121 public DSAParams getParams() in getParams() method in JDKDSAPublicKey
144 return this.getY().hashCode() ^ this.getParams().getG().hashCode() in hashCode()
145 ^ this.getParams().getP().hashCode() ^ this.getParams().getQ().hashCode(); in hashCode()
159 && this.getParams().getG().equals(other.getParams().getG()) in equals()
160 && this.getParams().getP().equals(other.getParams().getP()) in equals()
161 && this.getParams().getQ().equals(other.getParams().getQ()); in equals()
DDHUtil.java32 … new DHParameters(k.getParams().getP(), k.getParams().getG(), null, k.getParams().getL())); in generatePublicKeyParameter()
47 … new DHParameters(k.getParams().getP(), k.getParams().getG(), null, k.getParams().getL())); in generatePrivateKeyParameter()
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DEcKeyTest.java156 assertEquals(priv.getParams().getCofactor(), decoded.getParams().getCofactor()); in testEncodedPrivateKey()
157 assertEquals(priv.getParams().getCurve(), decoded.getParams().getCurve()); in testEncodedPrivateKey()
158 assertEquals(priv.getParams().getGenerator(), decoded.getParams().getGenerator()); in testEncodedPrivateKey()
159 assertEquals(priv.getParams().getOrder(), decoded.getParams().getOrder()); in testEncodedPrivateKey()
209 int keySize = EcUtil.fieldSizeInBits(pub.getParams().getCurve()); in testDefaultKeyGeneration()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
DKeyAgreementSpi.java158 if (!pubKey.getParams().getG().equals(g) || !pubKey.getParams().getP().equals(p)) in engineDoPhase()
221 return new BCDHPublicKey(res, pubKey.getParams()); in engineDoPhase()
349 this.p = privKey.getParams().getP(); in engineInit()
350 this.g = privKey.getParams().getG(); in engineInit()
362 this.p = privKey.getParams().getP(); in engineInit()
363 this.g = privKey.getParams().getG(); in engineInit()
382 this.p = privKey.getParams().getP(); in engineInit()
383 this.g = privKey.getParams().getG(); in engineInit()
406 DHParameterSpec params = pub.getParams(); in generatePrivateKeyParameter()
430 DHParameterSpec params = pub.getParams(); in generatePublicKeyParameter()
DBCDHPublicKey.java51 this.dhSpec = key.getParams(); in BCDHPublicKey()
173 public DHParameterSpec getParams() in getParams() method in BCDHPublicKey
213 return this.getY().hashCode() ^ this.getParams().getG().hashCode() in hashCode()
214 ^ this.getParams().getP().hashCode() ^ this.getParams().getL(); in hashCode()
228 && this.getParams().getG().equals(other.getParams().getG()) in equals()
229 && this.getParams().getP().equals(other.getParams().getP()) in equals()
230 && this.getParams().getL() == other.getParams().getL(); in equals()
DBCDHPrivateKey.java54 this.dhSpec = key.getParams(); in BCDHPrivateKey()
174 public DHParameterSpec getParams() in getParams() method in BCDHPrivateKey
209 && this.getParams().getG().equals(other.getParams().getG()) in equals()
210 && this.getParams().getP().equals(other.getParams().getP()) in equals()
211 && this.getParams().getL() == other.getParams().getL(); in equals()
216 return this.getX().hashCode() ^ this.getParams().getG().hashCode() in hashCode()
217 ^ this.getParams().getP().hashCode() ^ this.getParams().getL(); in hashCode()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DDHUtil.java35 … new DHParameters(k.getParams().getP(), k.getParams().getG(), null, k.getParams().getL())); in generatePublicKeyParameter()
50 … new DHParameters(k.getParams().getP(), k.getParams().getG(), null, k.getParams().getL())); in generatePrivateKeyParameter()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/dh/
DKeyAgreementSpi.java160 if (!pubKey.getParams().getG().equals(g) || !pubKey.getParams().getP().equals(p)) in engineDoPhase()
223 return new BCDHPublicKey(res, pubKey.getParams()); in engineDoPhase()
351 this.p = privKey.getParams().getP(); in engineInit()
352 this.g = privKey.getParams().getG(); in engineInit()
364 this.p = privKey.getParams().getP(); in engineInit()
365 this.g = privKey.getParams().getG(); in engineInit()
384 this.p = privKey.getParams().getP(); in engineInit()
385 this.g = privKey.getParams().getG(); in engineInit()
408 DHParameterSpec params = pub.getParams(); in generatePrivateKeyParameter()
432 DHParameterSpec params = pub.getParams(); in generatePublicKeyParameter()
DBCDHPrivateKey.java58 this.dhSpec = key.getParams(); in BCDHPrivateKey()
178 public DHParameterSpec getParams() in getParams() method in BCDHPrivateKey
213 && this.getParams().getG().equals(other.getParams().getG()) in equals()
214 && this.getParams().getP().equals(other.getParams().getP()) in equals()
215 && this.getParams().getL() == other.getParams().getL(); in equals()
220 return this.getX().hashCode() ^ this.getParams().getG().hashCode() in hashCode()
221 ^ this.getParams().getP().hashCode() ^ this.getParams().getL(); in hashCode()
DBCDHPublicKey.java55 this.dhSpec = key.getParams(); in BCDHPublicKey()
177 public DHParameterSpec getParams() in getParams() method in BCDHPublicKey
217 return this.getY().hashCode() ^ this.getParams().getG().hashCode() in hashCode()
218 ^ this.getParams().getP().hashCode() ^ this.getParams().getL(); in hashCode()
232 && this.getParams().getG().equals(other.getParams().getG()) in equals()
233 && this.getParams().getP().equals(other.getParams().getP()) in equals()
234 && this.getParams().getL() == other.getParams().getL(); in equals()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/util/
DDHUtil.java37 … new DHParameters(k.getParams().getP(), k.getParams().getG(), null, k.getParams().getL())); in generatePublicKeyParameter()
52 … new DHParameters(k.getParams().getP(), k.getParams().getG(), null, k.getParams().getL())); in generatePrivateKeyParameter()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
DKeyFactorySpi.java74 if (k.getParams() != null) in engineGetKeySpec()
76 return new java.security.spec.ECPublicKeySpec(k.getW(), k.getParams()); in engineGetKeySpec()
89 if (k.getParams() != null) in engineGetKeySpec()
91 return new java.security.spec.ECPrivateKeySpec(k.getS(), k.getParams()); in engineGetKeySpec()
103 if (k.getParams() != null) in engineGetKeySpec()
105 ….spec.ECPublicKeySpec(EC5Util.convertPoint(k.getParams(), k.getW(), false), EC5Util.convertSpec(k. in engineGetKeySpec()
111 …rn new org.bouncycastle.jce.spec.ECPublicKeySpec(EC5Util.convertPoint(k.getParams(), k.getW(), fal… in engineGetKeySpec()
118 if (k.getParams() != null) in engineGetKeySpec()
120 …ew org.bouncycastle.jce.spec.ECPrivateKeySpec(k.getS(), EC5Util.convertSpec(k.getParams(), false)); in engineGetKeySpec()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLECPrivateKey.java60 group = OpenSSLECGroupContext.getInstance(ecKeySpec.getParams()); in OpenSSLECPrivateKey()
72 group = OpenSSLECGroupContext.getInstance(ecPrivateKey.getParams()); in wrapPlatformKey()
88 params = ((ECKey) privateKey).getParams(); in wrapJCAPrivateKeyForTLSStackOnly()
90 params = ((ECKey) publicKey).getParams(); in wrapJCAPrivateKeyForTLSStackOnly()
108 params = ((ECKey) privateKey).getParams(); in wrapJCAPrivateKeyForTLSStackOnly()
135 .getParams()); in getInstance()
169 public ECParameterSpec getParams() { in getParams() method in OpenSSLECPrivateKey
207 final ECParameterSpec spec = getParams(); in equals()
208 final ECParameterSpec otherSpec = other.getParams(); in equals()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLECPrivateKey.java61 group = OpenSSLECGroupContext.getInstance(ecKeySpec.getParams()); in OpenSSLECPrivateKey()
73 group = OpenSSLECGroupContext.getInstance(ecPrivateKey.getParams()); in wrapPlatformKey()
89 params = ((ECKey) privateKey).getParams(); in wrapJCAPrivateKeyForTLSStackOnly()
91 params = ((ECKey) publicKey).getParams(); in wrapJCAPrivateKeyForTLSStackOnly()
109 params = ((ECKey) privateKey).getParams(); in wrapJCAPrivateKeyForTLSStackOnly()
136 .getParams()); in getInstance()
170 public ECParameterSpec getParams() { in getParams() method in OpenSSLECPrivateKey
208 final ECParameterSpec spec = getParams(); in equals()
209 final ECParameterSpec otherSpec = other.getParams(); in equals()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/ec/
DKeyFactorySpi.java78 if (k.getParams() != null) in engineGetKeySpec()
80 return new java.security.spec.ECPublicKeySpec(k.getW(), k.getParams()); in engineGetKeySpec()
93 if (k.getParams() != null) in engineGetKeySpec()
95 return new java.security.spec.ECPrivateKeySpec(k.getS(), k.getParams()); in engineGetKeySpec()
107 if (k.getParams() != null) in engineGetKeySpec()
109 ….spec.ECPublicKeySpec(EC5Util.convertPoint(k.getParams(), k.getW(), false), EC5Util.convertSpec(k. in engineGetKeySpec()
115 …ndroid.org.bouncycastle.jce.spec.ECPublicKeySpec(EC5Util.convertPoint(k.getParams(), k.getW(), fal… in engineGetKeySpec()
122 if (k.getParams() != null) in engineGetKeySpec()
124 …id.org.bouncycastle.jce.spec.ECPrivateKeySpec(k.getS(), EC5Util.convertSpec(k.getParams(), false)); in engineGetKeySpec()
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
DTestFmwk.java82 if (getParams().testSecurityManager != null) { in testInitialize()
83 System.setSecurityManager(getParams().testSecurityManager); in testInitialize()
110 if (getParams().testSecurityManager != null) { in testTeardown()
111 System.setSecurityManager(getParams().originalSecurityManager); in testTeardown()
115 private static TestParams getParams() { in getParams() method in TestFmwk
121 return getParams().getLoggingLevel() >= LOGGING_INFO; in isVerbose()
128 return getParams().inclusion; in getExhaustiveness()
132 return getParams().getInclusion() == 0; in isQuick()
138 return new Random(getParams().getSeed()); in createRandom()
215 if (getParams().knownIssues == null) { in logKnownIssue()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/
DTestFmwk.java83 if (getParams().testSecurityManager != null) { in testInitialize()
84 System.setSecurityManager(getParams().testSecurityManager); in testInitialize()
111 if (getParams().testSecurityManager != null) { in testTeardown()
112 System.setSecurityManager(getParams().originalSecurityManager); in testTeardown()
116 private static TestParams getParams() { in getParams() method in TestFmwk
122 return getParams().getLoggingLevel() >= LOGGING_INFO; in isVerbose()
129 return getParams().inclusion; in getExhaustiveness()
133 return getParams().getInclusion() == 0; in isQuick()
139 return new Random(getParams().getSeed()); in createRandom()
216 if (getParams().knownIssues == null) { in logKnownIssue()
[all …]

123456