Home
last modified time | relevance | path

Searched refs:p7 (Results 1 - 9 of 9) sorted by relevance

/base/security/appverify/interfaces/innerkits/appverify/include/util/
H A Dpkcs7_context.h38 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 Dhap_verify_openssl_utils.h54 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 Dsign_and_enforce_test.cpp77 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 Dhap_verify_openssl_utils.cpp57 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 Dhap_profile_verify_utils.cpp50 if (!HapVerifyOpensslUtils::GetCertChains(pkcs7Context.p7, pkcs7Context)) { in VerifyProfile()
/base/security/code_signature/utils/src/
H A Dsigner_info.cpp251 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 Dhap_verify_openssl_utils_test.cpp136 pkcs7Context.p7 = nullptr; in HWTEST_F()
/base/security/appverify/interfaces/innerkits/appverify/src/ticket/
H A Dticket_verify.cpp170 if (!HapVerifyOpensslUtils::GetCertChains(pkcs7Context.p7, pkcs7Context)) { in VerifyTicketSignature()
/base/security/appverify/interfaces/innerkits/appverify/src/verify/
H A Dhap_verify_v2.cpp143 if (!HapVerifyOpensslUtils::GetCertChains(pkcs7Context.p7, pkcs7Context)) { in VerifyAppPkcs7()

Completed in 4 milliseconds