Home
last modified time | relevance | path

Searched refs:anchor (Results 1 - 4 of 4) sorted by relevance

/base/security/certificate_framework/test/unittest/v1.0/src/
H A Dcrypto_x509_test_common.cpp350 HcfX509TrustAnchor *anchor = static_cast<HcfX509TrustAnchor *>(CfMalloc(sizeof(HcfX509TrustAnchor), 0)); in BuildAnchorArr() local
351 ASSERT_NE(anchor, nullptr); in BuildAnchorArr()
353 (void)HcfX509CertificateCreate(&certInStream, &anchor->CACert); in BuildAnchorArr()
356 trustAnchorArray.data[0] = anchor; in BuildAnchorArr()
363 HcfX509TrustAnchor *anchor = trustAnchorArray.data[i]; in FreeTrustAnchorArr() local
364 FreeTrustAnchor(anchor); in FreeTrustAnchorArr()
H A Dcrypto_x509_cert_chain_test.cpp819 HcfX509TrustAnchor anchor = { 0 }; in HWTEST_F() local
824 (void)HcfX509CertificateCreate(&inStream, &anchor.CACert); in HWTEST_F()
829 trustAnchorArray.data[0] = &anchor; in HWTEST_F()
841 CfObjDestroy(anchor.CACert); in HWTEST_F()
914 HcfX509TrustAnchor anchor = { 0 }; in HWTEST_F() local
919 trustAnchorArray.data[0] = &anchor; in HWTEST_F()
941 HcfX509TrustAnchor anchor = { 0 }; in HWTEST_F() local
943 anchor.CAPubKey = &pubkey; in HWTEST_F()
948 trustAnchorArray.data[0] = &anchor; in HWTEST_F()
973 HcfX509TrustAnchor anchor in HWTEST_F() local
1005 HcfX509TrustAnchor anchor = { 0 }; HWTEST_F() local
1041 HcfX509TrustAnchor anchor = { 0 }; HWTEST_F() local
1071 HcfX509TrustAnchor anchor = { 0 }; HWTEST_F() local
1100 HcfX509TrustAnchor anchor = { 0 }; HWTEST_F() local
1158 HcfX509TrustAnchor anchor = { 0 }; HWTEST_F() local
1212 HcfX509TrustAnchor anchor = { 0 }; HWTEST_F() local
1610 HcfX509TrustAnchor anchor = { 0 }; HWTEST_F() local
1649 HcfX509TrustAnchor anchor = { 0 }; HWTEST_F() local
1686 HcfX509TrustAnchor anchor = { 0 }; HWTEST_F() local
[all...]
/base/security/certificate_framework/frameworks/adapter/v1.0/src/
H A Dx509_cert_chain_openssl.c318 static CfResult CheckOthersInTrustAnchor(const HcfX509TrustAnchor *anchor, X509 *rootCert, bool *checkResult) in CheckOthersInTrustAnchor() argument
321 if (anchor->CAPubKey == NULL) { in CheckOthersInTrustAnchor()
326 EVP_PKEY *pubKey = ConvertByteArrayToPubKey(anchor->CAPubKey->data, anchor->CAPubKey->size); in CheckOthersInTrustAnchor()
331 /* pubkey in trust anchor may be the pubkey of self or of its upper level cert. */ in CheckOthersInTrustAnchor()
336 LOGE("verify pubkey in trust anchor failed!"); in CheckOthersInTrustAnchor()
346 if (anchor->CASubject != NULL) { in CheckOthersInTrustAnchor()
353 CfResult res = CompareNameObject(rootCert, anchor->CASubject, nameType, &compareSubjectFlag); in CheckOthersInTrustAnchor()
355 LOGE("verify subject in trust anchor failed!"); in CheckOthersInTrustAnchor()
359 LOGI("verify subject in trust anchor resul in CheckOthersInTrustAnchor()
2054 HcfX509TrustAnchorArray *anchor = (HcfX509TrustAnchorArray *)(CfMalloc(sizeof(HcfX509TrustAnchorArray), 0)); MallocTrustAnchorArray() local
2100 HcfX509TrustAnchorArray *anchor = MallocTrustAnchorArray(count); HcfX509CreateTrustAnchorWithKeyStoreFunc() local
[all...]
/base/security/certificate_framework/test/fuzztest/v1.0/x509certchain_fuzzer/
H A Dx509certchain_fuzzer.cpp80 HcfX509TrustAnchor *anchor = static_cast<HcfX509TrustAnchor *>(CfMalloc(sizeof(HcfX509TrustAnchor), 0)); in BuildAnchorArr1() local
81 if (anchor == nullptr) { in BuildAnchorArr1()
85 (void)HcfX509CertificateCreate(&certInStream, &anchor->CACert); in BuildAnchorArr1()
88 CfFree(anchor); in BuildAnchorArr1()
91 trustAnchorArray.data[0] = anchor; in BuildAnchorArr1()
112 HcfX509TrustAnchor *anchor = trustAnchorArray.data[i]; in FreeTrustAnchorArr1() local
113 FreeTrustAnchor1(anchor); in FreeTrustAnchorArr1()

Completed in 7 milliseconds