/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/model/ |
H A D | Validity.java | 49 ValidateUtils.throwIfMatches(this.notBefore == 0L, ERROR.SIGN_ERROR, "Require notBefore in validity!"); in enforceValid() 50 ValidateUtils.throwIfMatches(this.notAfter == 0L, ERROR.SIGN_ERROR, "Require notAfter in validity!"); in enforceValid() 51 ValidateUtils.throwIfMatches(this.notBefore >= this.notAfter, ERROR.SIGN_ERROR, in enforceValid()
|
H A D | DebugInfo.java | 75 ValidateUtils.throwIfMatches(this.deviceIds.size() > MAX_DEBUG_DEVICE_NUM, ERROR.SIGN_ERROR, in enforceValid() 77 ValidateUtils.throwIfMatches(!this.isDeviceIdTypeValid(), ERROR.SIGN_ERROR, in enforceValid()
|
H A D | BundleInfo.java | 125 ERROR.SIGN_ERROR, "Require cert in bundleInfo!"); in enforceValid() 128 ERROR.SIGN_ERROR, "Require cert in bundleInfo!"); in enforceValid()
|
H A D | Provision.java | 198 ERROR.SIGN_ERROR, "Require build type must be debug or release, current is :" + provision.type); in enforceValid() 200 ValidateUtils.throwIfMatches(provision.bundleInfo == null, ERROR.SIGN_ERROR, in enforceValid()
|
/developtools/hapsigner/hapsigntool_cpp/hap/entity/src/ |
H A D | sign_content_info.cpp | 62 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "InsertCharToByteArray failed."); in GetByteContent() 68 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "InsertShortToByteArray failed."); in GetByteContent() 74 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "InsertShortToByteArray failed."); in GetByteContent() 87 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "InsertShortToByteArray failed."); in GetByteContent()
|
H A D | sign_head.cpp | 47 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "InsertCharToByteArray failed."); in GetSignHead() 52 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "InsertCharToByteArray failed."); in GetSignHead() 57 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "InsertIntToByteArray failed."); in GetSignHead() 62 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "InsertIntToByteArray failed."); in GetSignHead() 67 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "InsertCharToByteArra in GetSignHead() [all...] |
/developtools/hapsigner/hapsigntool_cpp/hap/sign/src/ |
H A D | sign_bin.cpp | 73 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, in WriteBlockDataToFile() 81 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, in WriteBlockDataToFile() 92 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, in WriteBlockDataToFile() 108 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "[SignHap] get Signature Algorithm failed."); in GenerateFileDigest() 152 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, in WriteSignHeadDataToOutputFile() [all...] |
H A D | sign_hap.cpp | 27 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, in Sign() 33 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "Signature Algorithms is empty"); in Sign() 67 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "Generate Hap Signing Block failed"); in Sign() 80 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "Compute Content Digests failed"); in ComputeDigests() 86 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "Comput in ComputeDigests() [all...] |
H A D | sign_elf.cpp | 117 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "[SignElf] The length exceeds the maximum limit."); in WriteBlockDataToFile() 225 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "[SignElf] The length exceeds the maximum limit."); 236 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, in GenerateProfileSignByte() 248 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "[SignElf] check pamams signCode = 0 error."); in GenerateCodeSignByte() 274 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, in WriteSignHeadDataToOutputFile() [all...] |
H A D | bc_pkcs7_generator.cpp | 74 return SIGN_ERROR; in PackagePKCS7()
|
/developtools/hapsigner/hapsigntool_cpp/profile/src/ |
H A D | profile_sign_tool.cpp | 46 return SIGN_ERROR; in GenerateP7b() 76 return SIGN_ERROR;
|
H A D | pkcs7_data.cpp | 233 PrintErrorNumberMsg("INVALIDPARAM_ERROR", SIGN_ERROR, "p7 is NULL, pkcs7 sign failed"); in InitPkcs7() 234 result = SIGN_ERROR; in InitPkcs7()
|
/developtools/hapsigner/hapsigntool_cpp/codesigning/sign/src/ |
H A D | code_signing.cpp | 92 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "Failed to sign the contents in the compressed file."); in GetCodeSignBlock() 121 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, in ComputeDataSize() 167 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "system failed to allocate memory for MerkleTreeExtension"); in SignFile() 264 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "zlib get global info failed."); in GetNativeEntriesFromHap() 302 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "zli in GetSingleFileStreamFromZip() [all...] |
H A D | bc_signeddata_generator.cpp | 91 return SIGN_ERROR; in PackageSignedData()
|
/developtools/hapsigner/hapsigntool_cpp/common/include/ |
H A D | signature_tools_errno.h | 38 * Enum constant SIGN_ERROR. 40 const int SIGN_ERROR = -105; member
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/error/ |
H A D | ERROR.java | 57 * Enum constant SIGN_ERROR. 59 SIGN_ERROR(107), enum constant
|
/developtools/hapsigner/hapsigntool_cpp/codesigning/fsverity/src/ |
H A D | fs_verity_descriptor.cpp | 80 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "Salt is too long"); in ToByteArray() 109 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "Salt is too long"); in GetByteForGenerateDigest()
|
/developtools/hapsigner/hapsigntool_cpp/signer/src/ |
H A D | local_signer.cpp | 96 PrintErrorNumberMsg("SIGN_ERROR", SIGN_ERROR, "compute signature value failed");
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/signer/ |
H A D | LocalSigner.java | 89 CustomException.throwException(ERROR.SIGN_ERROR, exception.getMessage()); in getSignature()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/ |
H A D | VerifyHelper.java | 90 ValidateUtils.throwIfNotMatches(signature.verify(signedData), ERROR.SIGN_ERROR, "Signature not matched!"); in verifySignature() 93 CustomException.throwException(ERROR.SIGN_ERROR, "Failed to verify signature: " + exception.getMessage()); in verifySignature()
|
H A D | ProfileSignTool.java | 98 ValidateUtils.throwIfNotMatches(verificationResult.isVerifiedPassed(), ERROR.SIGN_ERROR, in generateP7b() 138 CustomException.throwException(ERROR.SIGN_ERROR, e.getMessage()); in signProfile()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/cert/ |
H A D | CertBuilder.java | 223 CustomException.throwException(ERROR.SIGN_ERROR, exception.getMessage()); in build()
|
/developtools/hapsigner/hapsigntool/hap_sign_tool/src/main/java/com/ohos/hapsigntool/ |
H A D | HapSignTool.java | 408 return new RetMsg(ERROR.SIGN_ERROR, "sign app failed"); in signApp() 460 return new RetMsg(ERROR.SIGN_ERROR, "sign profile failed"); in signProfile()
|
/developtools/hapsigner/hapsigntool_cpp/hap/provider/src/ |
H A D | sign_provider.cpp | 246 return PrintErrorLog("[SignCode] AppendCodeSignBlock failed", SIGN_ERROR, tmpOutputFilePath); in Sign() 252 return PrintErrorLog("[SignHap] SignHap Sign failed.", SIGN_ERROR, tmpOutputFilePath); in Sign()
|