/developtools/hapsigner/hapsigntool_cpp/cmd/include/ |
H A D | help.h | 28 USAGE: <sign-profile|verify-profile|sign-app|verify-app>[options] 94 generate-cert -keyAlias "oh-app1-key-v1" -keyPwd ****** -issuerKeyAlias "oh-app-sign-srv-ca-key-v1" 127 -keystoreFile "/home/app-keypair.jks" -keystorePwd ****** -outFile "/home/sub-app-sign-srv-ca.cer" 153 generate-app-cert -keyAlias "oh-app1-key-v1" -issuerKeyAlias "oh-app-sign-debug-srv-ca-key-v1" -validity 365 157 generate-app-cert -keyAlias "oh-app1-key-v1" -issuerKeyAlias "oh-app-sign-release-srv-ca-key-v1" -validity 365 159 -signAlg SHA256withECDSA -rootCaCertFile "/home/root-ca.cer" -subCaCertFile "/home/sub-app-sign-srv-ca.cer" 186 generate-profile-cert -keyAlias "oh-profile-key-v1" -issuerKeyAlias "oh-profile-sign-debug-srv-ca-key-v1" 191 generate-profile-cert -keyAlias "oh-profile-key-v1" -issuerKeyAlias "oh-profile-sign-release-srv-ca-key-v1" 195 -rootCaCertFile "/home/root-ca.cer" -subCaCertFile "/home/sub-profile-sign [all...] |
/developtools/hapsigner/hapsigntool_cpp/utils/src/ |
H A D | verify_hap_openssl_utils.cpp | 59 if (!GetContentInfo(pkcs7Context.p7->d.sign->contents, pkcs7Context.content)) { in ParsePkcs7Package() 73 VerifyCertOpensslUtils::GenerateCertSignFromCertStack(p7->d.sign->cert, certVisitSign); in GetCertChains() 130 if (p7 == nullptr || !PKCS7_type_is_signed(p7) || p7->d.sign == nullptr) { in CheckPkcs7SignedDataIsValid() 141 x509Crl = p7->d.sign->crl; in GetCrlStack()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/sign/ |
H A D | Pkcs7Generator.java | 16 package com.ohos.hapsigntool.hap.sign;
|
H A D | SignElf.java | 16 package com.ohos.hapsigntool.hap.sign; 20 import com.ohos.hapsigntool.codesigning.sign.CodeSigning; 54 * codesign sign block type 78 * @param signParams The input parameters of sign elf. 79 * @return true if sign successfully; false otherwise. 81 public static boolean sign(SignerConfig signerConfig, Map<String, String> signParams) { in sign() method in SignElf 99 /* 2. Make sign data, and write to output file */ in sign() 101 LOGGER.error("The sign head data made failed."); in sign() 153 // 1. generate sign data in writeBlockDataToFile() 157 blockNum = signDataList.size() + 1; // other sign bloc in writeBlockDataToFile() [all...] |
H A D | SignBin.java | 16 package com.ohos.hapsigntool.hap.sign; 57 * @param signParams The input parameters of sign bin. 58 * @return true if sign successfully; false otherwise. 60 public static boolean sign(SignerConfig signerConfig, Map<String, String> signParams) { in sign() method in SignBin 64 LOGGER.warn("can not sign bin with codesign"); in sign() 77 /* 2. Make sign data, and write to output file */ in sign() 80 LOGGER.error("The sign data made failed."); in sign() 85 /* 3. Make sign data, and write to output file */ in sign() 89 LOGGER.error("The sign head data made failed."); in sign() 116 LOGGER.error("The sign bloc in writeBlockDataToFile() [all...] |
H A D | SignHap.java | 16 package com.ohos.hapsigntool.hap.sign; 418 * @throws SignatureException if an error occurs when sign hap file. 420 public static byte[] sign(ZipDataInput[] contents, SignerConfig signerConfig, List<SigningBlock> optionalBlocks) in sign() method in SignHap
|
H A D | BcPkcs7Generator.java | 16 package com.ohos.hapsigntool.hap.sign; 96 LOGGER.info("Add sign data in sign info list success."); in generateSignedData() 101 throw new SignatureException("sign IOException" + e.getMessage(), e); in generateSignedData() 154 // Get sign data content from sign server in getSignerInfo()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/sign/ |
H A D | SignedDataGenerator.java | 16 package com.ohos.hapsigntool.codesigning.sign; 34 * Generate signature data with specific content and sign configuration. 37 * @param signerConfig sign configurations.
|
H A D | CentralDirectory.java | 16 package com.ohos.hapsigntool.codesigning.sign;
|
H A D | PageInfoGenerator.java | 16 package com.ohos.hapsigntool.codesigning.sign;
|
H A D | BcSignedDataGenerator.java | 16 package com.ohos.hapsigntool.codesigning.sign; 111 LOGGER.info("Create a sign info successfully."); in getSignInfo() 128 throw new CodeSignException("No certificates configured for sign"); in createSignInfo() 176 throw new CodeSignException("Create sign info failed", e); in getJcaX509CertificateHolder()
|
H A D | VerifyCodeSignature.java | 16 package com.ohos.hapsigntool.codesigning.sign; 62 * Verify code signature given a file with code sign block 126 * @param offset start position of code sign block based on the start of the elf file 127 * @param length byte size of code sign block 143 // 1) parse sign block to ElfCodeSignBlock object in verifyElf() 170 * @param offset start position of code sign block based on the start of the hap file 171 * @param length byte size of code sign block 288 // 1) parse sign block to CodeSignBlock object in generateCodeSignBlock() 383 * @throws VerifyCodeSignException parsing code sign block error
|
H A D | CodeSigning.java | 16 package com.ohos.hapsigntool.codesigning.sign; 92 * provide code sign functions to sign a hap 94 * @param signConfig configuration of sign 103 * @param input file to sign 107 * @return byte array of code sign block 115 LOGGER.info("Start to sign code."); in getElfCodeSignBlock() 155 * @param input file to sign 160 * @return byte array of code sign block 169 LOGGER.info("Start to sign cod in getCodeSignBlock() [all...] |
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/provider/ |
H A D | SignProvider.java | 23 import com.ohos.hapsigntool.codesigning.sign.PageInfoGenerator; 27 import com.ohos.hapsigntool.codesigning.sign.CodeSigning; 38 import com.ohos.hapsigntool.hap.sign.SignBin; 39 import com.ohos.hapsigntool.hap.sign.SignElf; 40 import com.ohos.hapsigntool.hap.sign.SignHap; 194 * Get certificate chain used to sign. 207 * get certificate revocation list used to sign 243 * sign bin file 245 * @param options parameters used to sign bin file 246 * @return true, if sign successfull 321 public boolean sign(Options options) { sign() method in SignProvider [all...] |
/developtools/profiler/device/plugins/ftrace_plugin/src/ |
H A D | ftrace_parser.cpp | 291 static bool ParseCommonIntType(FieldFormat& field, bool sign) in ParseCommonIntType() argument 295 field.filedType = sign ? FIELD_TYPE_INT8 : FIELD_TYPE_UINT8; in ParseCommonIntType() 298 field.filedType = sign ? FIELD_TYPE_INT16 : FIELD_TYPE_UINT16; in ParseCommonIntType() 301 field.filedType = sign ? FIELD_TYPE_INT32 : FIELD_TYPE_UINT32; in ParseCommonIntType() 304 field.filedType = sign ? FIELD_TYPE_INT64 : FIELD_TYPE_UINT64; in ParseCommonIntType()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/signer/ |
H A D | LocalSigner.java | 59 * @param privateKey Private key to sign 60 * @param certificates Cert chain to sign 70 * @param data Data to sign 85 signData = signature.sign(); in getSignature()
|
/developtools/profiler/host/smartperf/client/client_command/include/ |
H A D | stalling_rate_trace.h | 37 double GetTimes(const std::string &line, const std::string &sign) const;
|
/developtools/hapsigner/hapsigntool_cpp/profile/src/ |
H A D | pkcs7_data.cpp | 130 SIGNATURE_TOOLS_LOGE("sign failed"); in Sign() 169 PrintCertChainSub(m_p7->d.sign->cert); in Verify() 208 PrintErrorNumberMsg("INVALIDPARAM_ERROR", INVALIDPARAM_ERROR, "signer is NULL , sign failed"); in InitPkcs7() 225 sigAlg + "is invalid sigAlg, please use SHA256withECDSA/SHA384withECDSA, sign failed"); in InitPkcs7() 233 PrintErrorNumberMsg("INVALIDPARAM_ERROR", SIGN_ERROR, "p7 is NULL, pkcs7 sign failed"); in InitPkcs7() 321 SIGNATURE_TOOLS_LOGE("sign time invalid, signTime: %s, notBefore: %s, " in CheckSignTimeInValidPeriod() 426 STACK_OF(X509)* certChain = m_p7->d.sign->cert; in VerifyCertChain() 463 SIGNATURE_TOOLS_LOGE("pkcs7 sign time check failed"); in CheckSginerInfoSignTimeInCertChainValidPeriod() 508 SIGNATURE_TOOLS_LOGE("sign time is invalid,verify failed"); in VerifySignerInfoCertchain() 577 /* sign th in Pkcs7AddTimeDigestAndSignAttr() [all...] |
/developtools/smartperf_host/trace_streamer/src/parser/rawtrace_parser/ |
H A D | ftrace_processor.cpp | 211 "FieldFormat { offset: %u, size:%u, sign: %u fieldType: %s, " in PrintedFieldDetails() 343 static bool ParseCommonIntType(FieldFormat &field, bool sign) in ParseCommonIntType() argument 347 field.filedType = sign ? FIELD_TYPE_INT8 : FIELD_TYPE_UINT8; in ParseCommonIntType() 350 field.filedType = sign ? FIELD_TYPE_INT16 : FIELD_TYPE_UINT16; in ParseCommonIntType() 353 field.filedType = sign ? FIELD_TYPE_INT32 : FIELD_TYPE_UINT32; in ParseCommonIntType() 356 field.filedType = sign ? FIELD_TYPE_INT64 : FIELD_TYPE_UINT64; in ParseCommonIntType()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/datastructure/ |
H A D | CodeSignBlock.java | 18 import com.ohos.hapsigntool.codesigning.sign.CodeSigning; 30 * code sign block is a chunk of bytes attached to hap package or file. 32 * 1) code sign block header 106 * set code sign block flag 117 * set segmentNum defined in code sign block header, equals length of segmentHeaderList 182 * Convert code sign block object to a newly created byte array 205 * based on the start position of code sign block 221 * @param codeSignBlockOffset offset to store code sign block based on file start 227 // add code sign block offset while computing align position for merkle tree in computeMerkleTreeOffset() 241 * @return byte array representing the code sign bloc [all...] |
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/verify/ |
H A D | VerifyElf.java | 21 import com.ohos.hapsigntool.codesigning.sign.VerifyCodeSignature; 28 import com.ohos.hapsigntool.hap.sign.SignElf; 220 LOGGER.warn("can not found profile sign block"); in verifyElf() 234 LOGGER.warn("can not found code sign block"); in verifyElf() 262 throw new IOException("elf sign version verify failed"); in getElfSignBlockData()
|
H A D | VerifyHap.java | 21 import com.ohos.hapsigntool.codesigning.sign.VerifyCodeSignature; 260 String errMsg = "code sign verify failed"; in verifyHap() 280 LOGGER.error("Verify Hap failed, code sign block verify failed.", e); in verifyHap() 309 * code sign check 316 * @throws VerifyCodeSignException verify code sign on error 338 LOGGER.error("Verify Hap has no code sign data error!"); in checkCodeSign() 348 LOGGER.error("Verify Hap has no code sign data error!"); in checkCodeSign()
|
/developtools/profiler/host/smartperf/client/client_command/ |
H A D | stalling_rate_trace.cpp | 420 double StallingRateTrace::GetTimes(const std::string &line, const std::string &sign) const in GetTimes() 425 if (line.find(sign) != std::string::npos) { in GetTimes()
|
/developtools/hapsigner/hapsigntool_cpp_test/unittest/signProfile/ |
H A D | profile_test.cpp | 41 // sign profile使用的全局参数 58 // sign app 使用全局参数 368 STACK_OF(X509)* certs = pkcs7->d.sign->cert; 421 STACK_OF(X509)* certs = pkcs7->d.sign->cert; 468 STACK_OF(X509)* certs = pkcs7->d.sign->cert;
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/api/ |
H A D | SignToolServiceImpl.java | 306 // sign online or locally in signHap() 320 return signProvider.sign(options); in signHap()
|