/base/security/appverify/interfaces/innerkits/appverify/include/util/ |
H A D | pkcs7_context.h | 38 PKCS7* p7;
member 45 p7(nullptr), certChains(), content()
in Pkcs7Context() 51 if (p7 != nullptr) {
in ~Pkcs7Context() 52 PKCS7_free(p7);
in ~Pkcs7Context() 53 p7 = nullptr;
in ~Pkcs7Context()
|
H A D | hap_verify_openssl_utils.h | 54 DLL_EXPORT static bool GetCertChains(PKCS7* p7, Pkcs7Context& pkcs7Context); 76 static bool VerifyCertChain(CertChain& certsChain, PKCS7* p7, PKCS7_SIGNER_INFO* signInfo, 80 static bool CheckPkcs7SignedDataIsValid(const PKCS7* p7);
|
/base/security/code_signature/test/unittest/ |
H A D | sign_and_enforce_test.cpp | 77 static PKCS7_SIGNER_INFO *GetSignerInfo(PKCS7 *p7)
in GetSignerInfo() argument 79 STACK_OF(PKCS7_SIGNER_INFO) *signInfos = PKCS7_get_signer_info(p7);
in GetSignerInfo() 93 static bool DumpPKCS7Data(PKCS7 *p7, ByteBuffer &pkcs7Data)
in DumpPKCS7Data() argument 101 if (!i2d_PKCS7_bio(bio, p7)) {
in DumpPKCS7Data() 119 void (*modifyFunc)(PKCS7_SIGNER_INFO *p7))
in ModifyPkcs7SignerwithTargetFunc() 121 PKCS7 *p7 = LoadPKCS7Data(src);
in ModifyPkcs7SignerwithTargetFunc() local 122 if (p7 == nullptr) {
in ModifyPkcs7SignerwithTargetFunc() 125 PKCS7_SIGNER_INFO *signer = GetSignerInfo(p7);
in ModifyPkcs7SignerwithTargetFunc() 130 if (!DumpPKCS7Data(p7, dst)) {
in ModifyPkcs7SignerwithTargetFunc() 133 PKCS7_free(p7);
in ModifyPkcs7SignerwithTargetFunc() 118 ModifyPkcs7SignerwithTargetFunc(ByteBuffer &src, ByteBuffer &dst, void (*modifyFunc)(PKCS7_SIGNER_INFO *p7)) ModifyPkcs7SignerwithTargetFunc() argument [all...] |
/base/security/appverify/interfaces/innerkits/appverify/src/util/ |
H A D | hap_verify_openssl_utils.cpp | 57 pkcs7Context.p7 = d2i_PKCS7(nullptr, &packageData, packageLen); in ParsePkcs7Package() 58 if (!CheckPkcs7SignedDataIsValid(pkcs7Context.p7)) { in ParsePkcs7Package() 60 HAPVERIFY_LOG_ERROR("p7 is invalid"); in ParsePkcs7Package() 63 if (!GetContentInfo(pkcs7Context.p7->d.sign->contents, pkcs7Context.content)) { in ParsePkcs7Package() 70 bool HapVerifyOpensslUtils::GetCertChains(PKCS7* p7, Pkcs7Context& pkcs7Context) in GetCertChains() argument 72 if (!CheckPkcs7SignedDataIsValid(p7)) { in GetCertChains() 73 HAPVERIFY_LOG_ERROR("p7 is invalid"); in GetCertChains() 78 HapCertVerifyOpensslUtils::GenerateCertSignFromCertStack(p7->d.sign->cert, certVisitSign); in GetCertChains() 80 Pkcs7SignerInfoStack* signerInfoStack = PKCS7_get_signer_info(p7); in GetCertChains() 100 X509* cert = PKCS7_cert_from_signer_info(p7, signInf in GetCertChains() 118 VerifyCertChain(CertChain& certsChain, PKCS7* p7, PKCS7_SIGNER_INFO* signInfo, Pkcs7Context& pkcs7Context, CertSign& certVisitSign) VerifyCertChain() argument 137 CheckPkcs7SignedDataIsValid(const PKCS7* p7) CheckPkcs7SignedDataIsValid() argument [all...] |
H A D | hap_profile_verify_utils.cpp | 50 if (!HapVerifyOpensslUtils::GetCertChains(pkcs7Context.p7, pkcs7Context)) {
in VerifyProfile()
|
/base/security/code_signature/utils/src/ |
H A D | signer_info.cpp | 251 PKCS7 *p7 = d2i_PKCS7_bio(bio, nullptr);
in ParseOwnerIdFromSignature() local 252 if (p7 == nullptr) {
in ParseOwnerIdFromSignature() 258 STACK_OF(PKCS7_SIGNER_INFO) *signerInfosk = PKCS7_get_signer_info(p7);
in ParseOwnerIdFromSignature() 261 PKCS7_free(p7);
in ParseOwnerIdFromSignature() 275 PKCS7_free(p7);
in ParseOwnerIdFromSignature()
|
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/ |
H A D | hap_verify_openssl_utils_test.cpp | 136 pkcs7Context.p7 = nullptr; in HWTEST_F()
|
/base/security/appverify/interfaces/innerkits/appverify/src/ticket/ |
H A D | ticket_verify.cpp | 170 if (!HapVerifyOpensslUtils::GetCertChains(pkcs7Context.p7, pkcs7Context)) { in VerifyTicketSignature()
|
/base/security/appverify/interfaces/innerkits/appverify/src/verify/ |
H A D | hap_verify_v2.cpp | 143 if (!HapVerifyOpensslUtils::GetCertChains(pkcs7Context.p7, pkcs7Context)) { in VerifyAppPkcs7()
|