/libcore/ojluni/src/main/java/java/security/cert/ |
D | TrustAnchor.java | 66 private final PublicKey pubKey; field in TrustAnchor 130 this.pubKey = null; in TrustAnchor() 163 public TrustAnchor(X500Principal caPrincipal, PublicKey pubKey, in TrustAnchor() argument 165 if ((caPrincipal == null) || (pubKey == null)) { in TrustAnchor() 171 this.pubKey = pubKey; in TrustAnchor() 206 public TrustAnchor(String caName, PublicKey pubKey, byte[] nameConstraints) in TrustAnchor() argument 208 if (pubKey == null) in TrustAnchor() 219 this.pubKey = pubKey; in TrustAnchor() 267 return this.pubKey; in getCAPublicKey() 323 if (pubKey != null) { in toString() [all …]
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | SignatureTest.java | 1745 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA1withRSA_Key_Success() local 1748 sig.initVerify(pubKey); in testVerify_SHA1withRSA_Key_Success() 1758 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA256withRSA_Key_Success() local 1761 sig.initVerify(pubKey); in testVerify_SHA256withRSA_Key_Success() 1771 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA384withRSA_Key_Success() local 1774 sig.initVerify(pubKey); in testVerify_SHA384withRSA_Key_Success() 1784 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_SHA512withRSA_Key_Success() local 1787 sig.initVerify(pubKey); in testVerify_SHA512withRSA_Key_Success() 1797 PublicKey pubKey = kf.generatePublic(keySpec); in testVerify_MD5withRSA_Key_Success() local 1800 sig.initVerify(pubKey); in testVerify_MD5withRSA_Key_Success() [all …]
|
D | KeyPairGeneratorTest.java | 349 PublicKey pubKey = kf.generatePublic(spec); in test_KeyWithAllKeyFactories() local 350 assertNotNull(pubKey); in test_KeyWithAllKeyFactories() 351 assertTrue(Arrays.equals(encoded, pubKey.getEncoded())); in test_KeyWithAllKeyFactories() 440 DSAPublicKey pubKey = (DSAPublicKey) pair.getPublic(); in testDSAGeneratorWithParams() local 452 actualParams = pubKey.getParams(); in testDSAGeneratorWithParams()
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | ReverseState.java | 66 PublicKey pubKey; field in ReverseState 270 private void updateState(PublicKey pubKey, X500Principal subjectDN) { in updateState() argument 276 this.pubKey = pubKey; in updateState() 298 newKey = BasicChecker.makeInheritedParamsKey(newKey, pubKey); in updateState() 302 pubKey = newKey; in updateState()
|
D | RevocationChecker.java | 343 PublicKey pubKey, boolean crlSignFlag) 362 pubKey, crlSignFlag); 389 pubKey, crlSignFlag); 438 PublicKey pubKey = cert.getPublicKey(); 439 if (PKIX.isDSAPublicKeyWithoutParams(pubKey)) { 441 pubKey = BasicChecker.makeInheritedParamsKey(pubKey, prevPubKey); 443 prevPubKey = pubKey; 456 PublicKey pubKey, boolean signFlag) 459 checkCRLs(cert, pubKey, null, signFlag, true,
|
D | CertId.java | 94 byte[] pubKey = issuerKey.getEncoded(); in CertId() 95 DerValue val = new DerValue(pubKey); in CertId()
|
D | SunCertPathBuilder.java | 247 PublicKey pubKey = trustedCert != null ? trustedCert.getPublicKey() in buildReverse() local 250 if (PKIX.isDSAPublicKeyWithoutParams(pubKey)) { in buildReverse() 730 (finalPublicKey, currentState.pubKey); in depthFirstSearchReverse()
|
D | ReverseBuilder.java | 514 cert.verify(currentState.pubKey, buildParams.sigProvider()); in verifyCert() 516 cert.verify(currentState.pubKey); in verifyCert()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | X509CertInfo.java | 90 protected CertificateX509Key pubKey = null; field in X509CertInfo 294 if (subject == null || pubKey == null || interval == null in toString() 304 sb.append(" Key: " + pubKey.toString() + "\n"); in toString() 422 pubKey.set(suffix, val); in set() 503 pubKey = null; in delete() 505 pubKey.delete(suffix); in delete() 569 return(pubKey); in get() 571 return(pubKey.get(suffix)); in get() 667 pubKey = new CertificateX509Key(in); in parse() 780 pubKey.encode(tmp); in emit() [all …]
|
D | KeyIdentifier.java | 82 public KeyIdentifier(PublicKey pubKey) in KeyIdentifier() argument 85 DerValue algAndKey = new DerValue(pubKey.getEncoded()); in KeyIdentifier()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | KeyAgreementThread.java | 53 PublicKey pubKey = keyFact.generatePublic(x509KeySpec); in getSecretKey() local 57 ka.doPhase(pubKey, true); in getSecretKey()
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | CertificateFactoryTest.java | 560 PublicKey pubKey = keyPair.getPublic(); in generateCertificate() local 566 certGen.setPublicKey(pubKey); in generateCertificate() 574 new AuthorityKeyIdentifier(generatePublicKeyDigest(pubKey))); in generateCertificate() 578 new SubjectKeyIdentifier(generatePublicKeyDigest(pubKey))); in generateCertificate() 593 private static byte[] generatePublicKeyDigest(PublicKey pubKey) { in generatePublicKeyDigest() argument 594 SubjectPublicKeyInfo spki = SubjectPublicKeyInfo.getInstance(pubKey.getEncoded()); in generatePublicKeyDigest()
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | CipherTest.java | 2302 final PublicKey pubKey = kf.generatePublic(keySpec); in testRSA_ECB_NoPadding_Public_OnlyDoFinalWithOffset_Success() local 2311 c.init(Cipher.ENCRYPT_MODE, pubKey); in testRSA_ECB_NoPadding_Public_OnlyDoFinalWithOffset_Success() 2318 c.init(Cipher.DECRYPT_MODE, pubKey); in testRSA_ECB_NoPadding_Public_OnlyDoFinalWithOffset_Success() 2607 final PublicKey pubKey = kf.generatePublic(pubKeySpec); in testRSA_ECB_NoPadding_GetBlockSize_Success() local 2608 c.init(Cipher.ENCRYPT_MODE, pubKey); in testRSA_ECB_NoPadding_GetBlockSize_Success() 2637 final PublicKey pubKey = kf.generatePublic(pubKeySpec); in testRSA_ECB_NoPadding_GetOutputSize_Success() local 2640 c.init(Cipher.ENCRYPT_MODE, pubKey); in testRSA_ECB_NoPadding_GetOutputSize_Success() 2658 final PublicKey pubKey = kf.generatePublic(pubKeySpec); in testRSA_ECB_NoPadding_GetIV_Success() local 2663 c.init(Cipher.ENCRYPT_MODE, pubKey); in testRSA_ECB_NoPadding_GetIV_Success() 2678 final PublicKey pubKey = kf.generatePublic(pubKeySpec); in testRSA_ECB_NoPadding_GetParameters_NoneProvided_Success() local
|