Lines Matching defs:VerifyHap

39 const int32_t VerifyHap::HEX_PRINT_LENGTH = 3;
40 const int32_t VerifyHap::DIGEST_BLOCK_LEN_OFFSET = 8;
41 const int32_t VerifyHap::DIGEST_ALGORITHM_OFFSET = 12;
42 const int32_t VerifyHap::DIGEST_LEN_OFFSET = 16;
43 const int32_t VerifyHap::DIGEST_OFFSET_IN_CONTENT = 20;
44 const std::string VerifyHap::HAP_APP_PATTERN = "[^]*.hap$";
45 const std::string VerifyHap::HQF_APP_PATTERN = "[^]*.hqf$";
46 const std::string VerifyHap::HSP_APP_PATTERN = "[^]*.hsp$";
47 const std::string VerifyHap::APP_APP_PATTERN = "[^]*.app$";
50 VerifyHap::VerifyHap() : isPrintCert(true)
54 VerifyHap::VerifyHap(bool printCert)
59 void VerifyHap::setIsPrintCert(bool printCert)
64 bool VerifyHap::HapOutPutPkcs7(PKCS7* p7, const std::string& outPutPath)
78 bool VerifyHap::outputOptionalBlocks(const std::string& outputProfileFile, const std::string& outputProofFile,
102 bool VerifyHap::writeOptionalBytesToFile(const OptionalBlock& optionalBlock, const std::string& path)
116 bool VerifyHap::HapOutPutCertChain(std::vector<X509*>& certs, const std::string& outPutPath)
142 int32_t VerifyHap::Verify(const std::string& filePath, Options* options)
162 bool VerifyHap::CheckFilePath(const std::string& filePath, std::string& standardFilePath)
186 int32_t VerifyHap::Verify(RandomAccessFile& hapFile, Options* options, const std::string& filePath)
239 bool VerifyHap::CheckCodeSign(const std::string& hapFilePath,
280 bool isCodeSign = VerifyCodeSignature::VerifyHap(hapFilePath, blockOffset, blockLength,
293 int VerifyHap::GetProfileContent(const std::string profile, std::string& ret)
320 bool VerifyHap::VerifyAppPkcs7(Pkcs7Context& pkcs7Context, const ByteBuffer& hapSignatureBlock)
339 bool VerifyHap::GetDigestAndAlgorithm(Pkcs7Context& digest)
383 int32_t VerifyHap::WriteVerifyOutput(Pkcs7Context& pkcs7Context, std::vector<int8_t>& profile, Options* options)
386 bool flag = VerifyHap::HapOutPutCertChain(pkcs7Context.certChain[0],
402 bool pkcs7flag = VerifyHap::HapOutPutPkcs7(pkcs7Context.p7, options->GetString(Options::OUT_PROFILE));
410 bool VerifyHap::PrintCertChainToCmd(std::vector<X509*>& certChain)