Home
last modified time | relevance | path

Searched refs:pubKey (Results 1 – 25 of 32) sorted by relevance

12

/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DIdentityScope2Test.java32 static PublicKey pubKey; field in IdentityScope2Test
36 pubKey = KeyPairGenerator.getInstance("DSA").genKeyPair().getPublic();
145 id.setPublicKey(pubKey); in test_addIdentityLjava_security_Identity()
149 id2.setPublicKey(pubKey); in test_addIdentityLjava_security_Identity()
164 id.setPublicKey(pubKey); in test_removeIdentityLjava_security_Identity()
182 id.setPublicKey(pubKey); in test_identities()
195 id.setPublicKey(pubKey); in test_getIdentityLjava_security_Principal()
211 id.setPublicKey(pubKey); in test_getIdentityLjava_security_PublicKey()
213 Identity returnedId = sub.getIdentity(pubKey); in test_getIdentityLjava_security_PublicKey()
225 id.setPublicKey(pubKey); in test_getIdentityLjava_lang_String()
[all …]
DIdentity2Test.java37 static PublicKey pubKey; field in Identity2Test
41 pubKey = KeyPairGenerator.getInstance("DSA").genKeyPair().getPublic();
186 sub.setPublicKey(pubKey); in test_getPublicKey()
188 assertEquals("Wrong PublicKey returned", pubKey, returnedPubKey); in test_getPublicKey()
/external/conscrypt/src/main/java/org/conscrypt/
DOpenSSLECPublicKey.java54 OpenSSLECPointContext pubKey = OpenSSLECPointContext.getInstance( in OpenSSLECPublicKey() local
57 pubKey.getNativeRef(), null)); in OpenSSLECPublicKey()
67 OpenSSLECPointContext pubKey = OpenSSLECPointContext.getInstance( in getInstance() local
71 pubKey.getNativeRef(), null)); in getInstance()
98 final OpenSSLECPointContext pubKey = new OpenSSLECPointContext(group, in getPublicKey() local
101 return pubKey.getECPoint(); in getPublicKey()
DOpenSSLRSAKeyPairGenerator.java48 PublicKey pubKey = new OpenSSLRSAPublicKey(key); in generateKeyPair() local
50 return new KeyPair(pubKey, privKey); in generateKeyPair()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/extension/
DAuthorityKeyIdentifierStructure.java105 PublicKey pubKey) in fromKey() argument
110 SubjectPublicKeyInfo info = SubjectPublicKeyInfo.getInstance(pubKey.getEncoded()); in fromKey()
142 PublicKey pubKey) in AuthorityKeyIdentifierStructure() argument
145 super(fromKey(pubKey)); in AuthorityKeyIdentifierStructure()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
DKeyPairGeneratorSpi.java176 BCECPublicKey pubKey = new BCECPublicKey(algorithm, pub, p, configuration); in generateKeyPair() local
177 return new KeyPair(pubKey, in generateKeyPair()
178 new BCECPrivateKey(algorithm, priv, pubKey, p, configuration)); in generateKeyPair()
189 BCECPublicKey pubKey = new BCECPublicKey(algorithm, pub, p, configuration); in generateKeyPair() local
191 … return new KeyPair(pubKey, new BCECPrivateKey(algorithm, priv, pubKey, p, configuration)); in generateKeyPair()
DKeyAgreementSpi.java102 CipherParameters pubKey; in engineDoPhase() local
137 pubKey = ECUtil.generatePublicKeyParameter((PublicKey)key); in engineDoPhase()
145 result = agreement.calculateAgreement(pubKey); in engineDoPhase()
DBCECPrivateKey.java122 BCECPublicKey pubKey, in BCECPrivateKey() argument
149 publicKey = getPublicKeyDetails(pubKey); in BCECPrivateKey()
155 BCECPublicKey pubKey, in BCECPrivateKey() argument
184 publicKey = getPublicKeyDetails(pubKey); in BCECPrivateKey()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
DKeyAgreementSpi.java97 DHPublicKey pubKey = (DHPublicKey)key; in engineDoPhase() local
99 if (!pubKey.getParams().getG().equals(g) || !pubKey.getParams().getP().equals(p)) in engineDoPhase()
114 return new BCDHPublicKey(result, pubKey.getParams()); in engineDoPhase()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DJCERSAPublicKey.java50 …org.bouncycastle.asn1.pkcs.RSAPublicKey pubKey = org.bouncycastle.asn1.pkcs.RSAPublicKey.getInst… in JCERSAPublicKey() local
52 this.modulus = pubKey.getModulus(); in JCERSAPublicKey()
53 this.publicExponent = pubKey.getPublicExponent(); in JCERSAPublicKey()
DJCEECPrivateKey.java115 JCEECPublicKey pubKey, in JCEECPrivateKey() argument
140 publicKey = getPublicKeyDetails(pubKey); in JCEECPrivateKey()
146 JCEECPublicKey pubKey, in JCEECPrivateKey() argument
179 publicKey = getPublicKeyDetails(pubKey); in JCEECPrivateKey()
DCertPathValidatorUtilities.java1212 PublicKey pubKey = cert.getPublicKey(); in getNextWorkingKey() local
1213 if (!(pubKey instanceof DSAPublicKey)) in getNextWorkingKey()
1215 return pubKey; in getNextWorkingKey()
1217 DSAPublicKey dsaPubKey = (DSAPublicKey)pubKey; in getNextWorkingKey()
1225 pubKey = parentCert.getPublicKey(); in getNextWorkingKey()
1226 if (!(pubKey instanceof DSAPublicKey)) in getNextWorkingKey()
1231 DSAPublicKey prevDSAPubKey = (DSAPublicKey)pubKey; in getNextWorkingKey()
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/ocsp/jcajce/
DJcaRespID.java21 public JcaRespID(PublicKey pubKey, DigestCalculator digCalc) in JcaRespID() argument
24 super(SubjectPublicKeyInfo.getInstance(pubKey.getEncoded()), digCalc); in JcaRespID()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DBCRSAPublicKey.java65 …org.bouncycastle.asn1.pkcs.RSAPublicKey pubKey = org.bouncycastle.asn1.pkcs.RSAPublicKey.getInsta… in populateFromPublicKeyInfo() local
68 this.modulus = pubKey.getModulus(); in populateFromPublicKeyInfo()
69 this.publicExponent = pubKey.getPublicExponent(); in populateFromPublicKeyInfo()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/agreement/
DDHBasicAgreement.java60 CipherParameters pubKey) in calculateAgreement() argument
62 DHPublicKeyParameters pub = (DHPublicKeyParameters)pubKey; in calculateAgreement()
DECDHBasicAgreement.java45 CipherParameters pubKey) in calculateAgreement() argument
48 ECPoint peerPoint = ((ECPublicKeyParameters) pubKey).getQ(); in calculateAgreement()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DECUtil.java137 java.security.interfaces.ECPublicKey pubKey = (java.security.interfaces.ECPublicKey)key; in generatePublicKeyParameter() local
138 ECParameterSpec s = EC5Util.convertSpec(pubKey.getParams(), false); in generatePublicKeyParameter()
140 EC5Util.convertPoint(pubKey.getParams(), pubKey.getW(), false), in generatePublicKeyParameter()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/
DPublicKeyFactory.java93 RSAPublicKey pubKey = RSAPublicKey.getInstance(keyInfo.parsePublicKey()); in createKey() local
95 return new RSAKeyParameters(false, pubKey.getModulus(), pubKey.getPublicExponent()); in createKey()
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/jcajce/
DJcaSimpleSignerInfoVerifierBuilder.java48 public SignerInformationVerifier build(PublicKey pubKey) in build() argument
51 …gnatureAlgorithmIdentifierFinder(), helper.createContentVerifierProvider(pubKey), helper.createDig… in build()
DJcaSignerInfoVerifierBuilder.java78 public SignerInformationVerifier build(PublicKey pubKey) in build() argument
81 …ifier(sigAlgNameGen, sigAlgIDFinder, helper.createContentVerifierProvider(pubKey), digestProvider); in build()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
DBasicAgreement.java25 BigInteger calculateAgreement(CipherParameters pubKey); in calculateAgreement() argument
/external/boringssl/src/ssl/test/runner/
Dkey_agreement.go493 pubKey, ok := cert.PublicKey.(*ecdsa.PublicKey)
504 if !ecdsa.Verify(pubKey, digest, ecdsaSig.R, ecdsaSig.S) {
508 pubKey, ok := cert.PublicKey.(*rsa.PublicKey)
512 if err := rsa.VerifyPKCS1v15(pubKey, hashFunc, digest, sig); err != nil {
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/
DPKCS10CertificationRequest.java487 PublicKey pubKey, in verify() argument
531 sig.initVerify(pubKey); in verify()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/pkcs12/
DPKCS12KeyStoreSpi.java217 PublicKey pubKey) in createSubjectKeyId() argument
221 SubjectPublicKeyInfo info = SubjectPublicKeyInfo.getInstance(pubKey.getEncoded()); in createSubjectKeyId()
/external/bouncycastle/patches/
Dbcprov.patch398 CipherParameters pubKey)
400 - ECPublicKeyParameters pub = (ECPublicKeyParameters)pubKey;
403 + ECPoint peerPoint = ((ECPublicKeyParameters) pubKey).getQ();
2246 CipherParameters pubKey;
2261 - pubKey = new MQVPublicParameters(staticKey, ephemKey);
2281 + // pubKey = new MQVPublicParameters(staticKey, ephemKey);
2297 result = agreement.calculateAgreement(pubKey);

12