| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/sign/ |
| D | SignBin.java | 51 private static final Logger LOGGER = LogManager.getLogger(SignBin.class); field in SignBin 68 LOGGER.error("The block head data made failed."); in sign() 72 LOGGER.info("The block head data made success."); in sign() 77 LOGGER.error("The sign data made failed."); in sign() 81 LOGGER.info("The data signed success."); in sign() 85 LOGGER.error("The sign head data made failed."); in sign() 99 LOGGER.error("file length is invalid, binFileLen: " + binFileLen in writeBlockDataToFile() 106 … LOGGER.error("The profile block head offset is overflow interger range, offset: " + offset); in writeBlockDataToFile() 115 … LOGGER.error("The sign block head offset is overflow integer range, offset: " + offset); in writeBlockDataToFile() 123 LOGGER.error("writeBlockDataToFile failed.", e); in writeBlockDataToFile() [all …]
|
| D | BcPkcs7Generator.java | 73 private static final Logger LOGGER = LogManager.getLogger(BcPkcs7Generator.class); field in BcPkcs7Generator 94 LOGGER.info("Add sign data in sign info list success."); in generateSignedData() 248 LOGGER.error("signatureBytes is null"); in verifySignatureFromServer() 256 … LOGGER.error("Failed to verify generated signature using public key from certificate", e); in verifySignatureFromServer() 258 LOGGER.error("Failed to verify generated " + signAlgPair.getFirst() in verifySignatureFromServer() 261 LOGGER.error("Failed to verify generated " + signAlgPair.getSecond() in verifySignatureFromServer() 264 LOGGER.error("PKCS9 Attributes encode failed.", e); in verifySignatureFromServer()
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/verify/ |
| D | VerifyAndParseProvision.java | 35 private static final Logger LOGGER = LogManager.getLogger(VerifyAndParseProvision.class); field in VerifyAndParseProvision 49 LOGGER.error(errorMsg); in verifyAndParseProvision() 54 LOGGER.error("read provision file failed"); in verifyAndParseProvision() 59 LOGGER.error("get unsigned provision failed"); in verifyAndParseProvision() 71 … LOGGER.error(signedProvisionFile.getCanonicalPath() + " does not exist or can not read!"); in checkProvisionFile() 75 LOGGER.error(signedProvisionFile.getCanonicalPath() + " is not a file!"); in checkProvisionFile() 79 LOGGER.error("getCanonicalPath failed", e); in checkProvisionFile() 90 LOGGER.error("readFileToByteArray failed.", e); in getSignedProvisionData() 104 LOGGER.error("get unsigned provision data failed.", e); in getUnsignedProvisionData() 115 LOGGER.error("output unsigned provision to file failed.", e); in outputUnsignedProvisionToFile()
|
| D | VerifyHap.java | 59 private static final Logger LOGGER = LogManager.getLogger(VerifyHap.class); field in VerifyHap 86 LOGGER.error("Missing parameter: {}", ParamConstants.PARAM_VERIFY_CERTCHAIN_FILE); in checkParams() 90 LOGGER.error("Missing parameter: {}", ParamConstants.PARAM_VERIFY_PROFILE_FILE); in checkParams() 94 LOGGER.warn("Missing parameter: {}", ParamConstants.PARAM_VERIFY_PROOF_FILE); in checkParams() 109 LOGGER.error("Check params failed!"); in verify() 115 LOGGER.error("Not found verify file path!"); in verify() 120 LOGGER.error("Check input signature hap false!"); in verify() 125 LOGGER.error("verify: {}", verifyResult.getMessage()); in verify() 131 LOGGER.error("Write certificate chain error", e); in verify() 141 LOGGER.error("Output optional blocks error", e); in verify() [all …]
|
| D | HapVerify.java | 76 private static final Logger LOGGER = LogManager.getLogger(HapVerify.class); field in HapVerify 130 LOGGER.info("cert(subject DN = {}) is revoked by crl (IssuerDN = {})", in checkCRL() 217 LOGGER.error("Verify Hap error!", e); in parserSigner() 259 … LOGGER.info("+++++++++++++++++++++++++++certificate #{} +++++++++++++++++++++++++++++++", i); in getCertChain() 327 LOGGER.info("version is: {}, number of block is: {}", signBlockVersion, signBlockCount); in parserContentinfo() 354 LOGGER.error( in parserContentinfo() 360 …LOGGER.info("Digest verify result: {}, DigestAlgorithm: {}", result, digestAlg.getDigestAlgorithm(… in parserContentinfo() 368 LOGGER.info("Subject: {}", cert.getSubjectX500Principal()); in printCert() 369 LOGGER.info("Issuer: {}", cert.getIssuerX500Principal()); in printCert() 370 LOGGER.info("SerialNumber: {}", cert.getSerialNumber().toString(16)); in printCert() [all …]
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/ |
| D | DigestUtils.java | 46 private static final Logger LOGGER = LogManager.getLogger(DigestUtils.class); field in DigestUtils 61 LOGGER.error("don't has SHA-256 Algorithm"); in sha256Digest() 79 LOGGER.error("don't has SHA-384 Algorithm"); in sha384Digest() 97 LOGGER.error("don't has SHA-512 Algorithm"); in sha512Digest() 123 LOGGER.error("generateCertificate is not x509"); in decodeBase64ToX509Certifate() 128 LOGGER.error("Decode Base64 certificate failed!", e); in decodeBase64ToX509Certifate() 147 LOGGER.error("generateCRL is not x509"); in decodeBase64ToX509CRL() 152 LOGGER.error("Decode Base64 crl failed!"); in decodeBase64ToX509CRL()
|
| D | HashUtils.java | 36 private static final Logger LOGGER = LogManager.getLogger(HashUtils.class); field in HashUtils 73 LOGGER.error("no such algorithm", e); in getMessageDigest() 108 LOGGER.error("hashList is empty"); in getFileDigest() 116 LOGGER.error("getFileDigest File Not Found failed."); in getFileDigest() 118 LOGGER.error("getFileDigest IOException failed.", e); in getFileDigest() 120 LOGGER.error("MessageDigest is null", e); in getFileDigest()
|
| D | FileUtils.java | 49 private static final Logger LOGGER = LogManager.getLogger(FileUtils.class); field in FileUtils 86 LOGGER.debug(exception.getMessage(), exception); in close() 209 LOGGER.error("Failed to get input stream object."); in writeFileToDos() 211 LOGGER.error("Failed to read or write data."); in writeFileToDos() 227 LOGGER.error("Faile to write data to output stream."); in writeByteToDos() 260 LOGGER.error("Failed to get output stream object, outfile: " + outFile); in writeByteToOutFile() 262 LOGGER.error("Failed to write data to ops, outfile: " + outFile); in writeByteToOutFile() 365 LOGGER.warn("delete file '{}' error, error message: {}", file, e.getMessage()); in deleteFile()
|
| D | ParamProcessUtil.java | 38 private static final Logger LOGGER = LogManager.getLogger(ParamProcessUtil.class); field in ParamProcessUtil 67 LOGGER.warn("delete files failed!"); in delDir()
|
| D | CertChainUtils.java | 54 private static final Logger LOGGER = LogManager.getLogger(CertUtils.class); field in CertChainUtils 118 LOGGER.debug(exception.getMessage(), exception); in verifyCertChain()
|
| D | CertUtils.java | 49 private static final Logger LOGGER = LogManager.getLogger(CertUtils.class); field in CertUtils 149 LOGGER.debug(exception.getMessage(), exception); in buildDN()
|
| D | HapUtils.java | 54 private static final Logger LOGGER = LogManager.getLogger(HapUtils.class); field in HapUtils 369 LOGGER.error("targetSize: " + targetSize); in sliceBuffer() 524 … LOGGER.info("Find Hap Signing Block success, version: {}, block count: {}", version, blockCount); in findHapSigningBlock()
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/signer/ |
| D | SignerFactory.java | 49 private static final Logger LOGGER = LogManager.getLogger(SignerFactory.class); field in SignerFactory 65 LOGGER.warn("load remote signer failed, use default implementation"); in getSigner() 76 LOGGER.warn("lost parameter signerPlugin"); in loadRemoteSigner() 87 LOGGER.info("try to find plugin by path {}", plugin.getCanonicalPath()); in loadRemoteSigner() 89 LOGGER.warn("can not find signerPlugin by param signerPlugin = {}", signerPlugin); in loadRemoteSigner() 100 LOGGER.warn("can not find entry signer.properties in {}", plugin); in loadRemoteSigner() 107 LOGGER.warn("can not find {} in signer.properties", ISigner.class.getName()); in loadRemoteSigner() 119 LOGGER.warn("load remote signer from {} failed, msg: {}", signerPlugin, e.getMessage()); in loadRemoteSigner() 126 LOGGER.warn("{} is not exists", file); in fileToUrl() 132 LOGGER.warn("{} can not convert to valid url, msg: {}", file, e.getMessage()); in fileToUrl() [all …]
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/provider/ |
| D | LocalJKSSignProvider.java | 43 private static final Logger LOGGER = LogManager.getLogger(LocalJKSSignProvider.class); field in LocalJKSSignProvider 56 LOGGER.error("crl is not X509CRL"); in getCrl() 61 LOGGER.error("read CRL File has IOException!"); in getCrl() 64 LOGGER.error("Generate x509 CRL failed!"); in getCrl() 81 LOGGER.error("file is invalid: " + publicCertsFile + System.lineSeparator(), e); in checkPublicKeyPath()
|
| D | SignProvider.java | 88 private static final Logger LOGGER = LogManager.getLogger(SignProvider.class); field in SignProvider 143 LOGGER.error("check file failed"); in loadOptionalBlock() 149 LOGGER.warn("Optional block is null!"); in loadOptionalBlock() 154 LOGGER.error("read file error", e); in loadOptionalBlock() 167 LOGGER.error("fileName is null"); in checkFile() 172 LOGGER.error(filePath + " not exist or can not read!"); in checkFile() 250 LOGGER.error("create signer configs failed.", e); in signBin() 257 LOGGER.error("hap-sign-tool: error: Sign bin internal failed."); in signBin() 260 LOGGER.info("Sign success"); in signBin() 312 LOGGER.info("Generate signing block success, begin write it to output file"); in sign() [all …]
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/cert/ |
| D | CertTools.java | 79 private static final Logger LOGGER = LogManager.getLogger(ServiceApi.class); field in CertTools 103 LOGGER.debug(exception.getMessage(), exception); in generateRootCaCert() 127 LOGGER.debug(exception.getMessage(), exception); in generateSubCert() 155 LOGGER.debug(exception.getMessage(), exception); in generateCert() 181 LOGGER.debug(exception.getMessage(), exception); in generateEndCert() 203 LOGGER.debug(exception.getMessage(), exception); in generateCsr() 233 LOGGER.debug(exception.getMessage(), exception); in createFixedContentSigner()
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/ |
| D | VerifyHelper.java | 69 private static final Logger LOGGER = LogManager.getLogger(VerifyHelper.class); field in VerifyHelper 93 LOGGER.debug(exception.getMessage(), exception); in verifySignature() 120 LOGGER.debug(exception.getMessage(), exception); in certStoreToCertList() 160 LOGGER.debug(exception.getMessage(), exception); in verify() 173 LOGGER.warn("sign information does not include signTime"); in getSignTime() 179 LOGGER.warn("get sign time false, use local datetime verify profile cert chain"); in getSignTime() 198 LOGGER.debug(exception.getMessage(), exception); in verifyPkcs()
|
| D | ProfileSignTool.java | 75 private static final Logger LOGGER = LogManager.getLogger(ProfileSignTool.class); field in ProfileSignTool 131 LOGGER.debug(e.getMessage(), e); in signProfile()
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/key/ |
| D | KeyPairTools.java | 89 private static final Logger LOGGER = LogManager.getLogger(ServiceApi.class); field in KeyPairTools 116 LOGGER.debug(e.getMessage(), e); in generateKeyPair() 145 LOGGER.debug(exception.getMessage(), exception); in stringToPublicKey() 164 LOGGER.debug(exception.getMessage(), exception); in stringToPrivateKey()
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool/src/main/java/com/ohos/hapsigntool/ |
| D | HapSignTool.java | 42 private static final Logger LOGGER = LogManager.getLogger(HapSignTool.class); field in HapSignTool 84 LOGGER.debug(exception.getMessage(), exception); in main() 85 LOGGER.error(exception.getMessage()); in main() 106 LOGGER.debug(params.toString()); in processCmd() 107 LOGGER.info("Start {}", params.getMethod()); in processCmd() 111 LOGGER.info(String.format("%s %s", params.getMethod(), "success")); in processCmd() 113 LOGGER.info(String.format("%s %s", params.getMethod(), "failed")); in processCmd() 344 LOGGER.info(VERSION); in version() 351 HelpDocument.printHelp(LOGGER); in help()
|