Home
last modified time | relevance | path

Searched refs:getP (Results 1 – 25 of 120) sorted by relevance

12345

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
DBCDHPublicKey.java43 this.dhSpec = new DHParameterSpec(spec.getP(), spec.getG()); in BCDHPublicKey()
44 this.dhPublicKey = new DHPublicKeyParameters(y, new DHParameters(spec.getP(), spec.getG())); in BCDHPublicKey()
52 … this.dhPublicKey = new DHPublicKeyParameters(y, new DHParameters(dhSpec.getP(), dhSpec.getG())); in BCDHPublicKey()
76 … this.dhPublicKey = new DHPublicKeyParameters(y, new DHParameters(dhSpec.getP(), dhSpec.getG())); in BCDHPublicKey()
107 … this.dhSpec = new DHParameterSpec(params.getP(), params.getG(), params.getL().intValue()); in BCDHPublicKey()
111 this.dhSpec = new DHParameterSpec(params.getP(), params.getG()); in BCDHPublicKey()
113 … this.dhPublicKey = new DHPublicKeyParameters(y, new DHParameters(dhSpec.getP(), dhSpec.getG())); in BCDHPublicKey()
122 …this.dhPublicKey = new DHPublicKeyParameters(y, new DHParameters(params.getP(), params.getG(), par… in BCDHPublicKey()
127 …this.dhPublicKey = new DHPublicKeyParameters(y, new DHParameters(params.getP(), params.getG(), par… in BCDHPublicKey()
163 …dentifier(X9ObjectIdentifiers.dhpublicnumber, new DomainParameters(params.getP(), params.getG(), p… in getEncoded()
[all …]
DBCDHPrivateKey.java61 this.dhSpec = new DHParameterSpec(spec.getP(), spec.getG()); in BCDHPrivateKey()
81 … this.dhSpec = new DHParameterSpec(params.getP(), params.getG(), params.getL().intValue()); in BCDHPrivateKey()
83 … new DHParameters(params.getP(), params.getG(), null, params.getL().intValue())); in BCDHPrivateKey()
87 this.dhSpec = new DHParameterSpec(params.getP(), params.getG()); in BCDHPrivateKey()
89 new DHParameters(params.getP(), params.getG())); in BCDHPrivateKey()
96 …this.dhSpec = new DHDomainParameterSpec(params.getP(), params.getQ(), params.getG(), params.getJ()… in BCDHPrivateKey()
98 new DHParameters(params.getP(), params.getG(), params.getQ(), params.getJ(), null)); in BCDHPrivateKey()
155 …dentifier(X9ObjectIdentifiers.dhpublicnumber, new DomainParameters(params.getP(), params.getG(), p… in getEncoded()
159 …hmIdentifier(PKCSObjectIdentifiers.dhKeyAgreement, new DHParameter(dhSpec.getP(), dhSpec.getG(), d… in getEncoded()
171 return DHUtil.privateKeyToString("DH", x, new DHParameters(dhSpec.getP(), dhSpec.getG())); in toString()
[all …]
DKeyAgreementSpi.java158 if (!pubKey.getParams().getG().equals(g) || !pubKey.getParams().getP().equals(p)) in engineDoPhase()
287 this.p = p.getP(); in engineInit()
349 this.p = privKey.getParams().getP(); in engineInit()
362 this.p = privKey.getParams().getP(); in engineInit()
382 this.p = privKey.getParams().getP(); in engineInit()
408 new DHParameters(params.getP(), params.getG(), null, params.getL())); in generatePrivateKeyParameter()
437 new DHParameters(params.getP(), params.getG(), null, params.getL())); in generatePublicKeyParameter()
DAlgorithmParametersSpi.java49 … DHParameter dhP = new DHParameter(currentSpec.getP(), currentSpec.getG(), currentSpec.getL()); in engineGetEncoded()
106 … currentSpec = new DHParameterSpec(dhP.getP(), dhP.getG(), dhP.getL().intValue()); in engineInit()
110 currentSpec = new DHParameterSpec(dhP.getP(), dhP.getG()); in engineInit()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/dh/
DBCDHPublicKey.java47 this.dhSpec = new DHParameterSpec(spec.getP(), spec.getG()); in BCDHPublicKey()
48 this.dhPublicKey = new DHPublicKeyParameters(y, new DHParameters(spec.getP(), spec.getG())); in BCDHPublicKey()
56 … this.dhPublicKey = new DHPublicKeyParameters(y, new DHParameters(dhSpec.getP(), dhSpec.getG())); in BCDHPublicKey()
80 … this.dhPublicKey = new DHPublicKeyParameters(y, new DHParameters(dhSpec.getP(), dhSpec.getG())); in BCDHPublicKey()
111 … this.dhSpec = new DHParameterSpec(params.getP(), params.getG(), params.getL().intValue()); in BCDHPublicKey()
115 this.dhSpec = new DHParameterSpec(params.getP(), params.getG()); in BCDHPublicKey()
117 … this.dhPublicKey = new DHPublicKeyParameters(y, new DHParameters(dhSpec.getP(), dhSpec.getG())); in BCDHPublicKey()
126 …this.dhPublicKey = new DHPublicKeyParameters(y, new DHParameters(params.getP(), params.getG(), par… in BCDHPublicKey()
131 …this.dhPublicKey = new DHPublicKeyParameters(y, new DHParameters(params.getP(), params.getG(), par… in BCDHPublicKey()
167 …dentifier(X9ObjectIdentifiers.dhpublicnumber, new DomainParameters(params.getP(), params.getG(), p… in getEncoded()
[all …]
DBCDHPrivateKey.java65 this.dhSpec = new DHParameterSpec(spec.getP(), spec.getG()); in BCDHPrivateKey()
85 … this.dhSpec = new DHParameterSpec(params.getP(), params.getG(), params.getL().intValue()); in BCDHPrivateKey()
87 … new DHParameters(params.getP(), params.getG(), null, params.getL().intValue())); in BCDHPrivateKey()
91 this.dhSpec = new DHParameterSpec(params.getP(), params.getG()); in BCDHPrivateKey()
93 new DHParameters(params.getP(), params.getG())); in BCDHPrivateKey()
100 …this.dhSpec = new DHDomainParameterSpec(params.getP(), params.getQ(), params.getG(), params.getJ()… in BCDHPrivateKey()
102 new DHParameters(params.getP(), params.getG(), params.getQ(), params.getJ(), null)); in BCDHPrivateKey()
159 …dentifier(X9ObjectIdentifiers.dhpublicnumber, new DomainParameters(params.getP(), params.getG(), p… in getEncoded()
163 …hmIdentifier(PKCSObjectIdentifiers.dhKeyAgreement, new DHParameter(dhSpec.getP(), dhSpec.getG(), d… in getEncoded()
175 return DHUtil.privateKeyToString("DH", x, new DHParameters(dhSpec.getP(), dhSpec.getG())); in toString()
[all …]
DKeyAgreementSpi.java160 if (!pubKey.getParams().getG().equals(g) || !pubKey.getParams().getP().equals(p)) in engineDoPhase()
289 this.p = p.getP(); in engineInit()
351 this.p = privKey.getParams().getP(); in engineInit()
364 this.p = privKey.getParams().getP(); in engineInit()
384 this.p = privKey.getParams().getP(); in engineInit()
410 new DHParameters(params.getP(), params.getG(), null, params.getL())); in generatePrivateKeyParameter()
439 new DHParameters(params.getP(), params.getG(), null, params.getL())); in generatePublicKeyParameter()
DAlgorithmParametersSpi.java53 … DHParameter dhP = new DHParameter(currentSpec.getP(), currentSpec.getG(), currentSpec.getL()); in engineGetEncoded()
110 … currentSpec = new DHParameterSpec(dhP.getP(), dhP.getG(), dhP.getL().intValue()); in engineInit()
114 currentSpec = new DHParameterSpec(dhP.getP(), dhP.getG()); in engineInit()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/
DBCDSAPrivateKey.java51 this.dsaSpec = new DSAParameterSpec(spec.getP(), spec.getQ(), spec.getG()); in BCDSAPrivateKey()
62 this.dsaSpec = new DSAParameterSpec(params.getP(), params.getQ(), params.getG()); in BCDSAPrivateKey()
69 …this.dsaSpec = new DSAParameterSpec(params.getParameters().getP(), params.getParameters().getQ(), … in BCDSAPrivateKey()
95 … AlgorithmIdentifier(X9ObjectIdentifiers.id_dsa, new DSAParameter(dsaSpec.getP(), dsaSpec.getQ(), … in getEncoded()
120 && this.getParams().getP().equals(other.getParams().getP()) in equals()
127 ^ this.getParams().getP().hashCode() ^ this.getParams().getQ().hashCode(); in hashCode()
164 out.writeObject(dsaSpec.getP()); in writeObject()
174 BigInteger y = getParams().getG().modPow(x, getParams().getP()); in toString()
DBCDSAPublicKey.java38 this.dsaSpec = new DSAParameterSpec(spec.getP(), spec.getQ(), spec.getG()); in BCDSAPublicKey()
56 …this.dsaSpec = new DSAParameterSpec(params.getParameters().getP(), params.getParameters().getQ(), … in BCDSAPublicKey()
85 this.dsaSpec = new DSAParameterSpec(params.getP(), params.getQ(), params.getG()); in BCDSAPublicKey()
122 … AlgorithmIdentifier(X9ObjectIdentifiers.id_dsa, new DSAParameter(dsaSpec.getP(), dsaSpec.getQ(), … in getEncoded()
151 ^ this.getParams().getP().hashCode() ^ this.getParams().getQ().hashCode(); in hashCode()
174 && this.getParams().getP().equals(other.getParams().getP()) in equals()
213 out.writeObject(dsaSpec.getP()); in writeObject()
DDSAUtil.java58 return new DSAParameters(spec.getP(), spec.getQ(), spec.getG()); in toDSAParameters()
101 … new DSAParameters(k.getParams().getP(), k.getParams().getQ(), k.getParams().getG())); in generatePrivateKeyParameter()
109 …return new Fingerprint(Arrays.concatenate(y.toByteArray(), params.getP().toByteArray(), params.get… in generateKeyFingerprint()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/dsa/
DBCDSAPrivateKey.java55 this.dsaSpec = new DSAParameterSpec(spec.getP(), spec.getQ(), spec.getG()); in BCDSAPrivateKey()
66 this.dsaSpec = new DSAParameterSpec(params.getP(), params.getQ(), params.getG()); in BCDSAPrivateKey()
73 …this.dsaSpec = new DSAParameterSpec(params.getParameters().getP(), params.getParameters().getQ(), … in BCDSAPrivateKey()
99 … AlgorithmIdentifier(X9ObjectIdentifiers.id_dsa, new DSAParameter(dsaSpec.getP(), dsaSpec.getQ(), … in getEncoded()
124 && this.getParams().getP().equals(other.getParams().getP()) in equals()
131 ^ this.getParams().getP().hashCode() ^ this.getParams().getQ().hashCode(); in hashCode()
168 out.writeObject(dsaSpec.getP()); in writeObject()
178 BigInteger y = getParams().getG().modPow(x, getParams().getP()); in toString()
DBCDSAPublicKey.java42 this.dsaSpec = new DSAParameterSpec(spec.getP(), spec.getQ(), spec.getG()); in BCDSAPublicKey()
60 …this.dsaSpec = new DSAParameterSpec(params.getParameters().getP(), params.getParameters().getQ(), … in BCDSAPublicKey()
89 this.dsaSpec = new DSAParameterSpec(params.getP(), params.getQ(), params.getG()); in BCDSAPublicKey()
126 … AlgorithmIdentifier(X9ObjectIdentifiers.id_dsa, new DSAParameter(dsaSpec.getP(), dsaSpec.getQ(), … in getEncoded()
155 ^ this.getParams().getP().hashCode() ^ this.getParams().getQ().hashCode(); in hashCode()
178 && this.getParams().getP().equals(other.getParams().getP()) in equals()
217 out.writeObject(dsaSpec.getP()); in writeObject()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DJDKDSAPrivateKey.java50 this.dsaSpec = new DSAParameterSpec(spec.getP(), spec.getQ(), spec.getG()); in JDKDSAPrivateKey()
61 this.dsaSpec = new DSAParameterSpec(params.getP(), params.getQ(), params.getG()); in JDKDSAPrivateKey()
68 …this.dsaSpec = new DSAParameterSpec(params.getParameters().getP(), params.getParameters().getQ(), … in JDKDSAPrivateKey()
96 … AlgorithmIdentifier(X9ObjectIdentifiers.id_dsa, new DSAParameter(dsaSpec.getP(), dsaSpec.getQ(), … in getEncoded()
128 && this.getParams().getP().equals(other.getParams().getP()) in equals()
135 ^ this.getParams().getP().hashCode() ^ this.getParams().getQ().hashCode(); in hashCode()
172 out.writeObject(dsaSpec.getP()); in writeObject()
DJDKDSAPublicKey.java35 this.dsaSpec = new DSAParameterSpec(spec.getP(), spec.getQ(), spec.getG()); in JDKDSAPublicKey()
49 …this.dsaSpec = new DSAParameterSpec(params.getParameters().getP(), params.getParameters().getQ(), … in JDKDSAPublicKey()
81 this.dsaSpec = new DSAParameterSpec(params.getP(), params.getQ(), params.getG()); in JDKDSAPublicKey()
109 … AlgorithmIdentifier(X9ObjectIdentifiers.id_dsa, new DSAParameter(dsaSpec.getP(), dsaSpec.getQ(), … in getEncoded()
141 ^ this.getParams().getP().hashCode() ^ this.getParams().getQ().hashCode(); in hashCode()
156 && this.getParams().getP().equals(other.getParams().getP()) in equals()
173 out.writeObject(dsaSpec.getP()); in writeObject()
DJCEDHPublicKey.java37 this.dhSpec = new DHParameterSpec(spec.getP(), spec.getG()); in JCEDHPublicKey()
51 …this.dhSpec = new DHParameterSpec(params.getParameters().getP(), params.getParameters().getG(), pa… in JCEDHPublicKey()
89 … this.dhSpec = new DHParameterSpec(params.getP(), params.getG(), params.getL().intValue()); in JCEDHPublicKey()
93 this.dhSpec = new DHParameterSpec(params.getP(), params.getG()); in JCEDHPublicKey()
100 this.dhSpec = new DHParameterSpec(params.getP().getValue(), params.getG().getValue()); in JCEDHPublicKey()
125 …hmIdentifier(PKCSObjectIdentifiers.dhKeyAgreement, new DHParameter(dhSpec.getP(), dhSpec.getG(), d… in getEncoded()
174 out.writeObject(dhSpec.getP()); in writeObject()
DJCEDHPrivateKey.java55 this.dhSpec = new DHParameterSpec(spec.getP(), spec.getG()); in JCEDHPrivateKey()
75 … this.dhSpec = new DHParameterSpec(params.getP(), params.getG(), params.getL().intValue()); in JCEDHPrivateKey()
79 this.dhSpec = new DHParameterSpec(params.getP(), params.getG()); in JCEDHPrivateKey()
86 this.dhSpec = new DHParameterSpec(params.getP().getValue(), params.getG().getValue()); in JCEDHPrivateKey()
98 …this.dhSpec = new DHParameterSpec(params.getParameters().getP(), params.getParameters().getG(), pa… in JCEDHPrivateKey()
131 …hmIdentifier(PKCSObjectIdentifiers.dhKeyAgreement, new DHParameter(dhSpec.getP(), dhSpec.getG(), d… in getEncoded()
165 out.writeObject(dhSpec.getP()); in writeObject()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/provider/
DJDKDSAPrivateKey.java54 this.dsaSpec = new DSAParameterSpec(spec.getP(), spec.getQ(), spec.getG()); in JDKDSAPrivateKey()
65 this.dsaSpec = new DSAParameterSpec(params.getP(), params.getQ(), params.getG()); in JDKDSAPrivateKey()
72 …this.dsaSpec = new DSAParameterSpec(params.getParameters().getP(), params.getParameters().getQ(), … in JDKDSAPrivateKey()
100 … AlgorithmIdentifier(X9ObjectIdentifiers.id_dsa, new DSAParameter(dsaSpec.getP(), dsaSpec.getQ(), … in getEncoded()
132 && this.getParams().getP().equals(other.getParams().getP()) in equals()
139 ^ this.getParams().getP().hashCode() ^ this.getParams().getQ().hashCode(); in hashCode()
176 out.writeObject(dsaSpec.getP()); in writeObject()
DJDKDSAPublicKey.java39 this.dsaSpec = new DSAParameterSpec(spec.getP(), spec.getQ(), spec.getG()); in JDKDSAPublicKey()
53 …this.dsaSpec = new DSAParameterSpec(params.getParameters().getP(), params.getParameters().getQ(), … in JDKDSAPublicKey()
85 this.dsaSpec = new DSAParameterSpec(params.getP(), params.getQ(), params.getG()); in JDKDSAPublicKey()
113 … AlgorithmIdentifier(X9ObjectIdentifiers.id_dsa, new DSAParameter(dsaSpec.getP(), dsaSpec.getQ(), … in getEncoded()
145 ^ this.getParams().getP().hashCode() ^ this.getParams().getQ().hashCode(); in hashCode()
160 && this.getParams().getP().equals(other.getParams().getP()) in equals()
177 out.writeObject(dsaSpec.getP()); in writeObject()
DJCEDHPublicKey.java41 this.dhSpec = new DHParameterSpec(spec.getP(), spec.getG()); in JCEDHPublicKey()
55 …this.dhSpec = new DHParameterSpec(params.getParameters().getP(), params.getParameters().getG(), pa… in JCEDHPublicKey()
93 … this.dhSpec = new DHParameterSpec(params.getP(), params.getG(), params.getL().intValue()); in JCEDHPublicKey()
97 this.dhSpec = new DHParameterSpec(params.getP(), params.getG()); in JCEDHPublicKey()
104 this.dhSpec = new DHParameterSpec(params.getP().getValue(), params.getG().getValue()); in JCEDHPublicKey()
129 …hmIdentifier(PKCSObjectIdentifiers.dhKeyAgreement, new DHParameter(dhSpec.getP(), dhSpec.getG(), d… in getEncoded()
178 out.writeObject(dhSpec.getP()); in writeObject()
DJCEDHPrivateKey.java59 this.dhSpec = new DHParameterSpec(spec.getP(), spec.getG()); in JCEDHPrivateKey()
79 … this.dhSpec = new DHParameterSpec(params.getP(), params.getG(), params.getL().intValue()); in JCEDHPrivateKey()
83 this.dhSpec = new DHParameterSpec(params.getP(), params.getG()); in JCEDHPrivateKey()
90 this.dhSpec = new DHParameterSpec(params.getP().getValue(), params.getG().getValue()); in JCEDHPrivateKey()
102 …this.dhSpec = new DHParameterSpec(params.getParameters().getP(), params.getParameters().getG(), pa… in JCEDHPrivateKey()
135 …hmIdentifier(PKCSObjectIdentifiers.dhKeyAgreement, new DHParameter(dhSpec.getP(), dhSpec.getG(), d… in getEncoded()
169 out.writeObject(dhSpec.getP()); in writeObject()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/params/
DDSAParameters.java41 public BigInteger getP() in getP() method in DSAParameters
71 return (pm.getP().equals(p) && pm.getQ().equals(q) && pm.getG().equals(g)); in equals()
76 return getP().hashCode() ^ getQ().hashCode() ^ getG().hashCode(); in hashCode()
DDHParameters.java115 public BigInteger getP() in getP() method in DHParameters
190 return pm.getP().equals(p) && pm.getG().equals(g); in equals()
195 return getP().hashCode() ^ getG().hashCode() ^ (getQ() != null ? getQ().hashCode() : 0); in hashCode()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
DDSAParameters.java37 public BigInteger getP() in getP() method in DSAParameters
67 return (pm.getP().equals(p) && pm.getQ().equals(q) && pm.getG().equals(g)); in equals()
72 return getP().hashCode() ^ getQ().hashCode() ^ getG().hashCode(); in hashCode()
DDHParameters.java111 public BigInteger getP() in getP() method in DHParameters
186 return pm.getP().equals(p) && pm.getG().equals(g); in equals()
191 return getP().hashCode() ^ getG().hashCode() ^ (getQ() != null ? getQ().hashCode() : 0); in hashCode()

12345