Home
last modified time | relevance | path

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

123456789

/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/repackaged_platform/bcprov/src/main/java/com/android/internal/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/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/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/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/wycheproof/java/com/google/security/wycheproof/testcases/
DEcKeyTest.java164 assertEquals(priv.getParams().getCofactor(), decoded.getParams().getCofactor()); in testEncodedPrivateKey()
165 assertEquals(priv.getParams().getCurve(), decoded.getParams().getCurve()); in testEncodedPrivateKey()
166 assertEquals(priv.getParams().getGenerator(), decoded.getParams().getGenerator()); in testEncodedPrivateKey()
167 assertEquals(priv.getParams().getOrder(), decoded.getParams().getOrder()); in testEncodedPrivateKey()
223 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()
DBCDHPrivateKey.java55 this.dhSpec = key.getParams(); in BCDHPrivateKey()
64 this.dhSpec = ((DHExtendedPrivateKeySpec)spec).getParams(); in BCDHPrivateKey()
182 public DHParameterSpec getParams() in getParams() method in BCDHPrivateKey
217 && this.getParams().getG().equals(other.getParams().getG()) in equals()
218 && this.getParams().getP().equals(other.getParams().getP()) in equals()
219 && this.getParams().getL() == other.getParams().getL(); in equals()
224 return this.getX().hashCode() ^ this.getParams().getG().hashCode() in hashCode()
225 ^ this.getParams().getP().hashCode() ^ this.getParams().getL(); in hashCode()
/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/repackaged_platform/bcprov/src/main/java/com/android/internal/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/repackaged_platform/bcprov/src/main/java/com/android/internal/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.java59 this.dhSpec = key.getParams(); in BCDHPrivateKey()
68 this.dhSpec = ((DHExtendedPrivateKeySpec)spec).getParams(); in BCDHPrivateKey()
186 public DHParameterSpec getParams() in getParams() method in BCDHPrivateKey
221 && this.getParams().getG().equals(other.getParams().getG()) in equals()
222 && this.getParams().getP().equals(other.getParams().getP()) in equals()
223 && this.getParams().getL() == other.getParams().getL(); in equals()
228 return this.getX().hashCode() ^ this.getParams().getG().hashCode() in hashCode()
229 ^ this.getParams().getP().hashCode() ^ this.getParams().getL(); in hashCode()
/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()
DBCDHPublicKey.java50 this.dhSpec = ((DHExtendedPublicKeySpec)spec).getParams(); in BCDHPublicKey()
73 this.dhSpec = key.getParams(); in BCDHPublicKey()
205 public DHParameterSpec getParams() in getParams() method in BCDHPublicKey
245 return this.getY().hashCode() ^ this.getParams().getG().hashCode() in hashCode()
246 ^ this.getParams().getP().hashCode() ^ this.getParams().getL(); in hashCode()
260 && this.getParams().getG().equals(other.getParams().getG()) in equals()
261 && this.getParams().getP().equals(other.getParams().getP()) in equals()
262 && this.getParams().getL() == other.getParams().getL(); in equals()

123456789