/external/nist-pkits/src/libcore/java/security/cert/ |
D | X509CertificateNistPkitsTest.java | 104 X509Certificate[] certs = new X509Certificate[names.length]; in getCertificates() local 107 certs[i] = getCertificate(f, names[i]); in getCertificates() 110 return certs; in getCertificates() 138 X509Certificate[] certs = getCertificates(f, pathCerts); in getTestPath() local 139 return f.generateCertPath(Arrays.asList(certs)); in getTestPath() 144 X509Certificate[] certs = getCertificates(f, pathCerts); in getTestPathParams() local 150 certCollection.addAll(Arrays.asList(certs)); in getTestPathParams() 170 private void assertInvalidPath(String trustAnchor, String[] certs, String[] crls) in assertInvalidPath() argument 172 assertInvalidPath(trustAnchor, certs, certs, crls); in assertInvalidPath() 175 private void assertInvalidPath(String trustAnchor, String[] path, String[] certs, in assertInvalidPath() argument [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
D | PKIXCertPath.java | 72 List certs) in sortCerts() argument 74 if (certs.size() < 2) in sortCerts() 76 return certs; in sortCerts() 79 X500Principal issuer = ((X509Certificate)certs.get(0)).getIssuerX500Principal(); in sortCerts() 82 for (int i = 1; i != certs.size(); i++) in sortCerts() 84 X509Certificate cert = (X509Certificate)certs.get(i); in sortCerts() 88 issuer = ((X509Certificate)certs.get(i)).getIssuerX500Principal(); in sortCerts() 99 return certs; in sortCerts() 103 List retList = new ArrayList(certs.size()); in sortCerts() 104 List orig = new ArrayList(certs); in sortCerts() [all …]
|
/external/boringssl/src/crypto/x509/ |
D | pkcs7_test.c | 473 STACK_OF(X509) *certs = sk_X509_new_null(); in test_cert_reparse() 479 if (!PKCS7_get_certificates(certs, &pkcs7)) { in test_cert_reparse() 485 if (!PKCS7_bundle_certificates(&cbb, certs) || in test_cert_reparse() 497 if (sk_X509_num(certs) != sk_X509_num(certs2)) { in test_cert_reparse() 502 for (i = 0; i < sk_X509_num(certs); i++) { in test_cert_reparse() 503 X509 *a = sk_X509_value(certs, i); in test_cert_reparse() 528 sk_X509_pop_free(certs, X509_free); in test_cert_reparse() 600 STACK_OF(X509) *certs = sk_X509_new_null(); in test_pem_certs() 602 if (!PKCS7_get_PEM_certificates(certs, bio)) { in test_pem_certs() 607 if (sk_X509_num(certs) != 1) { in test_pem_certs() [all …]
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/ |
D | PoloUtil.java | 43 Certificate[] certs = session.getPeerCertificates(); in getPeerCert() local 44 if (certs == null || certs.length < 1) { in getPeerCert() 47 return certs[0]; in getPeerCert() 62 Certificate[] certs = session.getLocalCertificates(); in getLocalCert() local 63 if (certs == null || certs.length < 1) { in getLocalCert() 66 return certs[0]; in getLocalCert()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ocsp/ |
D | Signature.java | 18 ASN1Sequence certs; field in Signature 31 ASN1Sequence certs) in Signature() argument 35 this.certs = certs; in Signature() 46 certs = ASN1Sequence.getInstance( in Signature() 85 return certs; in getCerts() 104 if (certs != null) in toASN1Primitive() 106 v.add(new DERTaggedObject(true, 0, certs)); in toASN1Primitive()
|
D | BasicOCSPResponse.java | 19 private ASN1Sequence certs; field in BasicOCSPResponse 25 ASN1Sequence certs) in BasicOCSPResponse() argument 30 this.certs = certs; in BasicOCSPResponse() 42 this.certs = ASN1Sequence.getInstance((ASN1TaggedObject)seq.getObjectAt(3), true); in BasicOCSPResponse() 85 return certs; in getCerts() 105 if (certs != null) in toASN1Primitive() 107 v.add(new DERTaggedObject(true, 0, certs)); in toASN1Primitive()
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
D | TestCertUtils.java | 103 Certificate[] certs = new Certificate[howMany]; in genCertPath() local 105 certs[i] = new TestCertificate(Integer.toString(startID + i)); in genCertPath() 107 return new TestCertPath(certs); in genCertPath() 153 private Certificate[] certs; field in TestCertUtils.TestCertPath 163 certs = getCertChain(); in TestCertPath() 174 public TestCertPath(Certificate[] certs) { in TestCertPath() argument 176 this.certs = certs; in TestCertPath() 183 return Arrays.asList(certs); in getCertificates() 213 if (certs == null) { in toString() 216 buf.append(certs.length).append("\n"); in toString() [all …]
|
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
D | CertificateMessageTest.java | 63 assertEquals("incorrect message", 0, message.certs.length); in testCertificateMessage1() 75 assertEquals("incorrect message_2", 0, message_2.certs.length); in testCertificateMessage1() 92 assertTrue("incorrect cert encoding", Arrays.equals(message.certs[0] in testCertificateMessage2() 103 assertEquals("Incorrect message decoding", message.certs.length, message_2.certs.length); in testCertificateMessage2() 104 assertTrue("incorrect cert encoding", Arrays.equals(message.certs[0] in testCertificateMessage2() 105 .getEncoded(), message_2.certs[0].getEncoded())); in testCertificateMessage2()
|
/external/jetty/src/java/org/eclipse/jetty/server/ssl/ |
D | SslCertificates.java | 113 X509Certificate[] certs; in customize() local 120 certs=cachedInfo.getCerts(); in customize() 126 certs=SslCertificates.getCertChain(sslSession); in customize() 129 cachedInfo=new CachedInfo(keySize,certs,idStr); in customize() 133 if (certs!=null) in customize() 134 request.setAttribute("javax.servlet.request.X509Certificate",certs); in customize() 159 CachedInfo(Integer keySize, X509Certificate[] certs,String idStr) in CachedInfo() argument 162 this._certs=certs; in CachedInfo()
|
/external/wpa_supplicant_8/src/crypto/ |
D | tls_openssl_ocsp.c | 166 STACK_OF(X509) *certs; 214 ASN1_EXP_SEQUENCE_OF_OPT(BasicOCSPResponse, certs, X509, 0) 460 static X509 * ocsp_find_signer(STACK_OF(X509) *certs, ResponderID *rid) in ocsp_find_signer() argument 467 return X509_find_by_subject(certs, rid->value.byName); in ocsp_find_signer() 473 for (i = 0; i < sk_X509_num(certs); i++) { in ocsp_find_signer() 474 X509 *x = sk_X509_value(certs, i); in ocsp_find_signer() 504 STACK_OF(X509) *untrusted = NULL, *certs = NULL, *chain = NULL; in check_ocsp_resp() 564 if (basic->certs) { in check_ocsp_resp() 565 untrusted = sk_X509_dup(basic->certs); in check_ocsp_resp() 569 num = sk_X509_num(basic->certs); in check_ocsp_resp() [all …]
|
/external/conscrypt/src/main/java/org/conscrypt/ |
D | OpenSSLX509CertPath.java | 93 final OpenSSLX509Certificate[] certs = new OpenSSLX509Certificate[mCertificates.size()]; in getEncoded() local 94 final long[] certRefs = new long[certs.length]; in getEncoded() 96 for (int i = 0, j = certs.length - 1; j >= 0; i++, j--) { in getEncoded() 100 certs[j] = (OpenSSLX509Certificate) cert; in getEncoded() 102 certs[j] = OpenSSLX509Certificate.fromX509Der(cert.getEncoded()); in getEncoded() 105 certRefs[j] = certs[j].getContext(); in getEncoded() 165 final List<OpenSSLX509Certificate> certs = in fromPkiPathEncoding() local 171 certs.add(new OpenSSLX509Certificate(certRefs[i])); in fromPkiPathEncoding() 174 return new OpenSSLX509CertPath(certs); in fromPkiPathEncoding()
|
D | AbstractSessionContext.java | 219 Certificate[] certs = session.getPeerCertificates(); in toBytes() local 220 daos.writeInt(certs.length); in toBytes() 222 for (Certificate cert : certs) { in toBytes() 259 X509Certificate[] certs = new X509Certificate[count]; in toSession() local 264 certs[i] = OpenSSLX509Certificate.fromX509Der(certData); in toSession() 267 return new OpenSSLSessionImpl(sessionData, host, port, certs, this); in toSession()
|
/external/ipsec-tools/src/racoon/ |
D | eaytest.c | 225 char **certs; local 342 certs = getcerts(certpath); 350 certs = getcerts(NULL); 360 while (*certs != NULL) { 368 c.v = *certs; 369 c.l = strlen(*certs); 406 certs++; 415 char **certs = NULL, **p; local 551 p = (char **)realloc(certs, (n + 1) * sizeof(certs)); 554 certs = p; [all …]
|
/external/conscrypt/src/platform/java/org/conscrypt/ |
D | TrustManagerImpl.java | 222 private static Set<TrustAnchor> trustAnchors(X509Certificate[] certs) { in trustAnchors() argument 223 Set<TrustAnchor> trustAnchors = new HashSet<TrustAnchor>(certs.length); in trustAnchors() 224 for (X509Certificate cert : certs) { in trustAnchors() 295 public List<X509Certificate> getTrustedChainForServer(X509Certificate[] certs, in getTrustedChainForServer() argument 304 return checkTrusted(certs, authType, session, parameters, false /* client auth */); in getTrustedChainForServer() 312 public List<X509Certificate> getTrustedChainForServer(X509Certificate[] certs, in getTrustedChainForServer() argument 318 return checkTrusted(certs, authType, session, engine.getSSLParameters(), in getTrustedChainForServer() 361 private List<X509Certificate> checkTrusted(X509Certificate[] certs, String authType, in checkTrusted() argument 375 return checkTrusted(certs, authType, hostname, clientAuth); in checkTrusted() 378 private List<X509Certificate> checkTrusted(X509Certificate[] certs, String authType, in checkTrusted() argument [all …]
|
/external/boringssl/src/tool/ |
D | pkcs12.cc | 123 STACK_OF(X509) *certs = sk_X509_new_null(); in DoPKCS12() 125 if (!PKCS12_get_key_and_certs(&key, certs, &pkcs12, password)) { in DoPKCS12() 136 for (size_t i = 0; i < sk_X509_num(certs); i++) { in DoPKCS12() 137 PEM_write_X509(stdout, sk_X509_value(certs, i)); in DoPKCS12() 139 sk_X509_pop_free(certs, X509_free); in DoPKCS12()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
D | RFC3280CertPathUtilities.java | 535 List certs = builder.engineBuild(extParams).getCertPath().getCertificates(); in processCRLF() local 537 validKeys.add(CertPathValidatorUtilities.getNextWorkingKey(certs, 0, helper)); in processCRLF() 896 List certs = certPath.getCertificates(); in prepareCertB() local 897 X509Certificate cert = (X509Certificate)certs.get(index); in prepareCertB() 898 int n = certs.size(); in prepareCertB() 1080 List certs = certPath.getCertificates(); in prepareNextCertA() local 1081 X509Certificate cert = (X509Certificate)certs.get(index); in prepareNextCertA() 1156 List certs = certPath.getCertificates(); in processCertE() local 1157 X509Certificate cert = (X509Certificate)certs.get(index); in processCertE() 1185 List certs = certPath.getCertificates(); in processCertBC() local [all …]
|
D | PKIXCertPathValidatorSpi.java | 101 List certs = certPath.getCertificates(); in engineValidate() local 102 int n = certs.size(); in engineValidate() 104 if (certs.isEmpty()) in engineValidate() 110 X509Certificate cert = (X509Certificate) certs.get(0); in engineValidate() 141 … trust = CertPathValidatorUtilities.findTrustAnchor((X509Certificate) certs.get(certs.size() - 1), in engineValidate() 146 throw new CertPathValidatorException(e.getMessage(), e, certPath, certs.size() - 1); in engineValidate() 283 && !paramsPKIX.getTargetConstraints().match((X509Certificate) certs.get(0))) in engineValidate() 301 for (index = certs.size() - 1; index >= 0; index--) in engineValidate() 325 cert = (X509Certificate) certs.get(index); in engineValidate() 326 boolean verificationAlreadyPerformed = (index == certs.size() - 1); in engineValidate()
|
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/ |
D | HandshakeCompletedEventTest.java | 101 Certificate[] certs = event.getLocalCertificates(); in testGetLocalCertificates() local 103 if (certs == null && ses_certs == null) { in testGetLocalCertificates() 106 if (certs == null || ses_certs == null) { in testGetLocalCertificates() 109 for (int i = 0; i < certs.length; i++) { in testGetLocalCertificates() 110 if (certs[i] != ses_certs[i]) { in testGetLocalCertificates()
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/ |
D | CertificateFactory_ImplTest.java | 353 private void verifyCertificates(Collection certs) throws Exception { in verifyCertificates() argument 356 for (Iterator it = certs.iterator(); it.hasNext(); ) { in verifyCertificates() 554 Collection certs = in testGenerateBase64Certificates() local 556 assertNotNull("Factory returned null on correct data", certs); in testGenerateBase64Certificates() 558 expected_size, certs.size()); in testGenerateBase64Certificates() 559 verifyCertificates(certs); in testGenerateBase64Certificates() 586 Collection certs = factory.generateCertificates(bais); in testGenerateBase64PKCS7() local 587 assertNotNull("Factory returned null on correct PKCS7 data", certs); in testGenerateBase64PKCS7() 589 2, certs.size()); in testGenerateBase64PKCS7() 592 for (Iterator it = certs.iterator(); it.hasNext(); ) { in testGenerateBase64PKCS7() [all …]
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
D | CertificateFactory3Test.java | 90 Certificate[] certs = new Certificate[3]; in testGenerateCertificate() local 92 certs[i] = certFs[i].generateCertificate(new ByteArrayInputStream( in testGenerateCertificate() 95 assertEquals(certs[0], certs[1]); in testGenerateCertificate() 96 assertEquals(certs[0], certs[2]); in testGenerateCertificate()
|
/external/boringssl/src/crypto/pkcs8/ |
D | pkcs12_test.cc | 687 ScopedX509Stack certs(sk_X509_new_null()); in Test() local 688 if (!certs) { in Test() 695 if (!PKCS12_get_key_and_certs(&key, certs.get(), &pkcs12, kPassword)) { in Test() 702 if (sk_X509_num(certs.get()) != 1 || key == nullptr) { in Test()
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
D | KeyStore_Impl1Test.java | 459 KeyStoreTestSupport.MCertificate certs[] = { in testEntry02() local 466 certs); in testEntry02() 502 certs.length); in testEntry02() 504 assertEquals("Incorrect CertificateChain", cc[t], certs[t]); in testEntry02() 519 certs.length); in testEntry02() 521 assertEquals("Incorrect CertificateChain", cc[t], certs[t]); in testEntry02() 725 KeyStoreTestSupport.MCertificate certs[] = { in testEntry05() local 741 kss[i].setKeyEntry("ZZZ", null, pwd, certs); in testEntry05() 760 kss[i].setKeyEntry(aliases[j], key, pwd, certs); in testEntry05() 763 kss[i].setKeyEntry("KeyAlias", key, pwd, certs); in testEntry05() [all …]
|
/external/wpa_supplicant_8/hs20/client/ |
D | est.c | 39 STACK_OF(X509) *certs; in pkcs7_to_cert() 44 certs = sk_X509_new_null(); in pkcs7_to_cert() 45 if (!certs) in pkcs7_to_cert() 48 if (!PKCS7_get_certificates(certs, &pkcs7_cbs)) { in pkcs7_to_cert() 65 certs = p7->d.sign->cert; in pkcs7_to_cert() 68 certs = p7->d.signed_and_enveloped->cert; in pkcs7_to_cert() 71 certs = NULL; in pkcs7_to_cert() 76 if (!certs || ((num = sk_X509_num(certs)) == 0)) { in pkcs7_to_cert() 86 i2d_X509_fp(f, sk_X509_value(certs, 0)); in pkcs7_to_cert() 97 X509 *cert = sk_X509_value(certs, i); in pkcs7_to_cert() [all …]
|
/external/webrtc/webrtc/base/ |
D | fakesslidentity.h | 29 explicit FakeSSLCertificate(const std::vector<std::string>& certs) in FakeSSLCertificate() argument 30 : data_(certs.front()), in FakeSSLCertificate() 35 for (it = certs.begin() + 1; it != certs.end(); ++it) { in FakeSSLCertificate()
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
D | CMSSignedGenerator.java | 86 protected List certs = new ArrayList(); field in CMSSignedGenerator 118 certs.add(certificate.toASN1Structure()); in addCertificate() 131 certs.addAll(CMSUtils.getCertificatesFromStore(certStore)); in addCertificates() 167 certs.add(new DERTaggedObject(false, 2, attrCert.toASN1Structure())); in addAttributeCertificate() 180 certs.addAll(CMSUtils.getAttributeCertificatesFromStore(attrStore)); in addAttributeCertificates()
|