Home
last modified time | relevance | path

Searched refs:profile (Results 1 - 25 of 29) sorted by relevance

12

/developtools/hapsigner/hapsigntool_cpp/cmd/include/
H A Dhelp.h27 USAGE: <generate-keypair|generate-csr|generate-cert|generate-ca|generate-app-cert|generate-profile-cert>[options]
28 USAGE: <sign-profile|verify-profile|sign-app|verify-app>[options]
44 generate-keypair -keyAlias "oh-profile-key-v1" -keyPwd ****** -keyAlg ECC -keySize NIST-P-256
45 -keystoreFile "/home/profile-keypair.jks" -keystorePwd ******
165 generate-profile-cert[options]:
186 generate-profile-cert -keyAlias "oh-profile-key-v1" -issuerKeyAlias "oh-profile-sign-debug-srv-ca-key-v1"
187 -keyPwd ****** -issuerKeyPwd ****** -keystoreFile "/home/profile
[all...]
/developtools/hapsigner/hapsigntool/hap_sign_tool/src/test/java/com/ohos/hapsigntoolcmd/
H A DConcurrencyTest.java112 File profile = File.createTempFile(TMP_SIGNED_FILE, TMP_PROFILE_SUFFIX, TMP_DIR); in generateSignHapTask()
115 tmpSource.add(new Cleanable(profile)); in generateSignHapTask()
117 return new MultiSignHapTask(inputFile, outputFile, profile, countDownLatch); in generateSignHapTask()
178 private final File profile; field in ConcurrencyTest.MultiSignHapTask
182 private MultiSignHapTask(File inputFile, File outputFile, File profile, CountDownLatch countDownLatch) { in MultiSignHapTask() argument
185 this.profile = profile; in MultiSignHapTask()
220 signProfileParameters.setInFile("../../tools/profile.json"); in signProfile()
224 signProfileParameters.setOutFile(profile.getCanonicalPath()); in signProfile()
230 verifyProfileParameters.setInFile(profile in verifyProfile()
[all...]
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/verify/
H A DVerifyResult.java120 private byte[] profile; field in VerifyResult
214 return profile; in getProfile()
217 public void setProfile(byte[] profile) { in setProfile() argument
218 this.profile = profile; in setProfile()
H A DVerifyHap.java89 private static String getProfileContent(byte[] profile) throws ProfileException { in getProfileContent() argument
91 CMSSignedData cmsSignedData = new CMSSignedData(profile); in getProfileContent()
93 throw new ProfileException("Verify profile pkcs7 failed! Profile is invalid"); in getProfileContent()
97 throw new ProfileException("Check profile failed, signed profile content is not byte array!"); in getProfileContent()
101 return new String(profile, StandardCharsets.UTF_8); in getProfileContent()
209 byte[] profile = verifyResult.getProfile(); in outputOptionalBlocks()
210 if (profile != null) { in outputOptionalBlocks()
211 writeOptionalBytesToFile(profile, outputProfileFile); in outputOptionalBlocks()
286 LOGGER.error("Verify Hap failed, parse app-identifier from profile faile in verifyHap()
[all...]
H A DVerifyElf.java67 private static String getProfileContent(byte[] profile) throws ProfileException { in getProfileContent() argument
69 CMSSignedData cmsSignedData = new CMSSignedData(profile); in getProfileContent()
71 throw new ProfileException("Verify profile pkcs7 failed! Profile is invalid"); in getProfileContent()
75 throw new ProfileException("Check profile failed, signed profile content is not byte array!"); in getProfileContent()
79 return new String(profile, StandardCharsets.UTF_8); in getProfileContent()
165 byte[] profile = verifyResult.getProfile(); in outputOptionalBlocks()
166 if (profile != null) { in outputOptionalBlocks()
167 writeOptionalBytesToFile(profile, outputProfileFile); in outputOptionalBlocks()
210 LOGGER.warn("profile i in verifyElf()
[all...]
/developtools/integration_verification/tools/deps_guard/elf_file_mgr/sa/
H A Dsa.py37 path = os.path.join(out_root_path, "packages/phone/system/profile")
54 profile = json.load(f)
55 process = profile["process"]
56 for sa in profile["systemability"]:
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/
H A DIProvisionVerifier.java16 package com.ohos.hapsigntool.profile;
19 import com.ohos.hapsigntool.profile.model.VerificationResult;
H A DVerifyHelper.java16 package com.ohos.hapsigntool.profile;
23 import com.ohos.hapsigntool.profile.model.VerificationResult;
62 * Signed provision profile verifier.
73 * Signed provision profile verifier.
179 LOGGER.warn("get sign time false, use local datetime verify profile cert chain"); in getSignTime()
H A DProfileSignTool.java16 package com.ohos.hapsigntool.profile;
22 import com.ohos.hapsigntool.profile.model.VerificationResult;
63 * To sign and verify profile.
/developtools/hapsigner/hapsigntool_cpp/hap/verify/src/
H A Dverify_hap.cpp276 SIGNATURE_TOOLS_LOGE("get profile content failed, file: %s", hapFilePath.c_str()); in CheckCodeSign()
293 int VerifyHap::GetProfileContent(const std::string profile, std::string& ret) in GetProfileContent() argument
295 json obj = json::parse(profile, nullptr, false); in GetProfileContent()
297 ret = profile; in GetProfileContent()
301 if (p7Data.Parse(profile) < 0) { in GetProfileContent()
302 ret = profile; in GetProfileContent()
307 "Verify profile pkcs7 failed! Profile is invalid"); in GetProfileContent()
308 ret = profile; in GetProfileContent()
313 "Check profile failed, signed profile conten in GetProfileContent()
383 WriteVerifyOutput(Pkcs7Context& pkcs7Context, std::vector<int8_t>& profile, Options* options) WriteVerifyOutput() argument
[all...]
/developtools/hapsigner/autosign/
H A Dautosign.py47 'generate-profile-cert': {
53 'sign-profile': {
157 'sign.profile': 'sign-profile',
180 'profile.keypair': 'generate-keypair',
184 'sub-ca.profile': 'generate-ca',
186 'cert.profile': 'generate-profile-cert',
193 'profile.keypair': 'generate-keypair',
196 'sub-ca.profile'
[all...]
/developtools/hapsigner/hapsigntool_cpp/hap/verify/include/
H A Dverify_hap.h61 int32_t WriteVerifyOutput(Pkcs7Context& pkcs7Context, std::vector<int8_t>& profile, Options* options);
66 static int GetProfileContent(const std::string profile, std::string& ret);
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/model/
H A DVerificationResult.java16 package com.ohos.hapsigntool.profile.model;
H A DAcls.java16 package com.ohos.hapsigntool.profile.model;
H A DValidity.java16 package com.ohos.hapsigntool.profile.model;
H A DPermissions.java16 package com.ohos.hapsigntool.profile.model;
H A DDebugInfo.java16 package com.ohos.hapsigntool.profile.model;
H A DBundleInfo.java16 package com.ohos.hapsigntool.profile.model;
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/test/java/com/ohos/hapsigntool/
H A DProfileTest.java25 import com.ohos.hapsigntool.profile.ProfileSignTool;
26 import com.ohos.hapsigntool.profile.VerifyHelper;
27 import com.ohos.hapsigntool.profile.model.VerificationResult;
89 private static final String CERT_PATH = "test-profile-cert.cer";
102 * Test error profile content.
119 * test profile
/developtools/hapsigner/hapsigntool_cpp/hap/provider/src/
H A Dsign_provider.cpp415 if (auto profile = signParams.find(ParamConstants::PARAM_BASIC_PROFILE); profile != signParams.end()) { in LoadOptionalBlocks()
416 if ((ret = LoadOptionalBlock(profile->second, HapUtils::HAP_PROFILE_BLOCK_ID)) != RET_OK) in LoadOptionalBlocks()
492 SIGNATURE_TOOLS_LOGE("profile check error"); in GetX509Certificates()
753 std::string profile; in FindProfileFromOptionalBlocks() local
756 profile = std::string(optionalBlock.optionalBlockValue.GetBufferPtr(), in FindProfileFromOptionalBlocks()
760 return profile; in FindProfileFromOptionalBlocks()
765 std::string profile = FindProfileFromOptionalBlocks(); variable
776 if (p7Data.Parse(profile) < 0) {
777 SIGNATURE_TOOLS_LOGE("Parse profile erro
[all...]
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/provider/
H A DSignProvider.java142 String profile = signParams.get(ParamConstants.PARAM_BASIC_PROFILE); in loadOptionalBlocks()
143 loadOptionalBlock(profile, HapUtils.HAP_PROFILE_BLOCK_ID); in loadOptionalBlocks()
299 LOGGER.error("hap-sign-tool: error: Sign elf can not use unsigned profile."); in signElf()
386 * @throws ProfileException profile of app is invalid
435 * @throws ProfileException Exception occurs when profile is invalid.
551 * Get CN value of developer certificate from profile.
553 * @param buildInfoObject json obect of buildInfo in profile.
563 * Get CN value of release certificate from profile.
565 * @param buildInfoObject json obect of buildInfo in profile.
588 byte[] profile in findProfileFromOptionalBlocks()
[all...]
/developtools/hiperf/script/
H A Dcommand_script.py45 help="""Collect profile info for an OHOS app""")
48 help="""Collect profile info
109 profiler.profile()
H A Drecord_control.py75 help="""Collect profile info for an OHOS app""")
78 help="""Collect profile info
148 profiler.profile()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/api/
H A DSignToolServiceImpl.java29 import com.ohos.hapsigntool.profile.ProfileSignTool;
30 import com.ohos.hapsigntool.profile.VerifyHelper;
31 import com.ohos.hapsigntool.profile.model.Provision;
32 import com.ohos.hapsigntool.profile.model.VerificationResult;
211 * Generate profile cert.
245 * Sign for profile.
268 * Verify profile.
410 * @param input input provision profile
/developtools/hapsigner/hapsigntool_cpp_test/unittest/hapVerify/
H A Dhap_verify_test.cpp158 options[Options::OUT_PROFILE] = "./hapVerify/profile.p7b"; in HWTEST_F()
188 options[Options::OUT_PROFILE] = "./hapVerify/profile.p7b"; in HWTEST_F()
206 options[Options::OUT_PROFILE] = "./hapVerify/profile.p7b"; in HWTEST_F()
239 * @tc.steps: step4. change profile pkcs7 data. in HWTEST_F()
275 options[Options::OUT_PROFILE] = "./hapVerify/profile.p7b"; in HWTEST_F()
335 * @tc.desc: This function tests failure for interface GetProfileContent due to profile error
340 std::string profile = ""; in HWTEST_F() local
344 int rets = verify.GetProfileContent(profile, ret); in HWTEST_F()
350 * @tc.desc: This function tests failure for interface GetProfileContent due to profile error
356 std::string profile in HWTEST_F() local
550 std::string profile = ""; HWTEST_F() local
565 std::string profile = "{version-name: 1.0.0,version-code: 1,uuid: fe686e1b-3770-4824-a938-961b140a7c98}"; HWTEST_F() local
[all...]

Completed in 12 milliseconds

12