| /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 65 LOGGER.warn("can not sign bin with codesign"); in sign() 72 LOGGER.error("The block head data made failed."); in sign() 76 LOGGER.info("The block head data made success."); in sign() 81 LOGGER.error("The sign data made failed."); in sign() 85 LOGGER.info("The data signed success."); in sign() 89 LOGGER.error("The sign head data made failed."); in sign() 103 LOGGER.error("file length is invalid, binFileLen: " + binFileLen in writeBlockDataToFile() 110 … LOGGER.error("The profile block head offset is overflow interger range, offset: " + offset); in writeBlockDataToFile() 119 … LOGGER.error("The sign block head offset is overflow integer range, offset: " + offset); in writeBlockDataToFile() [all …]
|
| D | SignElf.java | 58 private static final Logger LOGGER = LogManager.getLogger(SignElf.class); field in SignElf 87 LOGGER.error("copy input File failed"); in sign() 93 LOGGER.error("The block head data made failed.`"); in sign() 97 LOGGER.info("The block head data made success."); in sign() 101 LOGGER.error("The sign head data made failed."); in sign() 115 LOGGER.error("create tmp file Failed"); in alignFileBy4kBytes() 128 LOGGER.error("File alignment error"); in alignFileBy4kBytes() 135 LOGGER.error("copy inFile Failed"); in alignFileBy4kBytes() 150 LOGGER.error("file length is invalid, elf file len: " + binFileLen); in writeBlockDataToFile() 168 LOGGER.error("writeBlockDataToFile failed.", e); in writeBlockDataToFile() [all …]
|
| D | BcPkcs7Generator.java | 75 private static final Logger LOGGER = LogManager.getLogger(BcPkcs7Generator.class); field in BcPkcs7Generator 96 LOGGER.info("Add sign data in sign info list success."); in generateSignedData() 250 LOGGER.error("signatureBytes is null"); in verifySignatureFromServer() 258 … LOGGER.error("Failed to verify generated signature using public key from certificate", e); in verifySignatureFromServer() 260 LOGGER.error("Failed to verify generated " + signAlgPair.getFirst() in verifySignatureFromServer() 263 LOGGER.error("Failed to verify generated " + signAlgPair.getSecond() in verifySignatureFromServer() 266 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 | VerifyElf.java | 61 private static final Logger LOGGER = LogManager.getLogger(VerifyElf.class); field in VerifyElf 92 LOGGER.error("Missing parameter: {}", ParamConstants.PARAM_VERIFY_CERTCHAIN_FILE); in checkParams() 96 LOGGER.error("Missing parameter: {}", ParamConstants.PARAM_VERIFY_PROFILE_FILE); in checkParams() 100 LOGGER.warn("Missing parameter: {}", ParamConstants.PARAM_VERIFY_PROOF_FILE); in checkParams() 115 LOGGER.error("Check params failed!"); in verify() 120 LOGGER.error("Not found verify file path!"); in verify() 125 LOGGER.error("Check input signature ELF false!"); in verify() 130 LOGGER.error("verify: {}", verifyResult.getMessage()); in verify() 138 LOGGER.error("Write certificate chain error", e); in verify() 146 LOGGER.error("Output optional blocks error", e); in verify() [all …]
|
| D | VerifyHap.java | 70 private static final Logger LOGGER = LogManager.getLogger(VerifyHap.class); field in VerifyHap 114 LOGGER.error("Missing parameter: {}", ParamConstants.PARAM_VERIFY_CERTCHAIN_FILE); in checkParams() 118 LOGGER.error("Missing parameter: {}", ParamConstants.PARAM_VERIFY_PROFILE_FILE); in checkParams() 122 LOGGER.warn("Missing parameter: {}", ParamConstants.PARAM_VERIFY_PROOF_FILE); in checkParams() 137 LOGGER.error("Check params failed!"); in verify() 142 LOGGER.error("Not found verify file path!"); in verify() 147 LOGGER.error("Check input signature hap false!"); in verify() 152 LOGGER.error("verify: {}", verifyResult.getMessage()); in verify() 160 LOGGER.error("Write certificate chain error", e); in verify() 170 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 155 LOGGER.info("cert(subject DN = {}) is revoked by crl (IssuerDN = {})", in checkCRL() 248 LOGGER.error("Verify profile error!", e); in parserSigner() 290 … LOGGER.info("+++++++++++++++++++++++++++certificate #{} +++++++++++++++++++++++++++++++", i); in getCertChain() 357 LOGGER.info("version is: {}, number of block is: {}", signBlockVersion, signBlockCount); in parserContentinfo() 384 LOGGER.error( in parserContentinfo() 390 …LOGGER.info("Digest verify result: {}, DigestAlgorithm: {}", isResult, digestAlg.getDigestAlgorith… in parserContentinfo() 398 LOGGER.info("Subject: {}", cert.getSubjectX500Principal()); in printCert() 399 LOGGER.info("Issuer: {}", cert.getIssuerX500Principal()); in printCert() 400 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 | 53 private static final Logger LOGGER = LogManager.getLogger(FileUtils.class); field in FileUtils 104 LOGGER.debug(exception.getMessage(), exception); in close() 233 LOGGER.error("Failed to get input stream object."); in appendWriteFileByOffsetToFile() 235 LOGGER.error("Failed to read or write data."); in appendWriteFileByOffsetToFile() 312 LOGGER.error("Failed to get input stream object."); in writeFileToDos() 314 LOGGER.error("Failed to read or write data."); in writeFileToDos() 333 LOGGER.error("Failed to write data to output stream."); in writeByteToDos() 364 LOGGER.error("Failed to get output stream object, outfile: " + outFile); in writeByteToOutFile() 366 LOGGER.error("Failed to write data to ops, outfile: " + outFile); in writeByteToOutFile() 384 LOGGER.error("Failed to get output stream object, outfile: " + outFile); in writeByteToOutFile() [all …]
|
| D | KeyPairTools.java | 87 private static final Logger LOGGER = LogManager.getLogger(KeyPairTools.class); field in KeyPairTools 114 LOGGER.debug(e.getMessage(), e); in generateKeyPair() 143 LOGGER.debug(exception.getMessage(), exception); in stringToPublicKey() 162 LOGGER.debug(exception.getMessage(), exception); in stringToPrivateKey()
|
| D | ParamProcessUtil.java | 39 private static final Logger LOGGER = LogManager.getLogger(ParamProcessUtil.class); field in ParamProcessUtil 68 LOGGER.warn("delete files failed!"); in delDir()
|
| D | CertUtils.java | 58 private static final Logger LOGGER = LogManager.getLogger(CertUtils.class); field in CertUtils 168 LOGGER.debug(exception.getMessage(), exception); in buildDN() 291 LOGGER.debug(exception.getMessage(), exception); in createFixedContentSigner()
|
| /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 | SignProvider.java | 90 private static final Logger LOGGER = LogManager.getLogger(SignProvider.class); field in SignProvider 148 LOGGER.error("check file failed"); in loadOptionalBlock() 154 LOGGER.warn("Optional block is null!"); in loadOptionalBlock() 159 LOGGER.error("read file error", e); in loadOptionalBlock() 172 LOGGER.error("fileName is null"); in checkFile() 177 LOGGER.error(filePath + " not exist or can not read!"); in checkFile() 254 LOGGER.error("create signer configs failed.", e); in signBin() 261 LOGGER.error("hap-sign-tool: error: Sign bin internal failed."); in signBin() 264 LOGGER.info("Sign success"); in signBin() 286 LOGGER.error("create signer configs failed.", e); in signElf() [all …]
|
| D | LocalJKSSignProvider.java | 44 private static final Logger LOGGER = LogManager.getLogger(LocalJKSSignProvider.class); field in LocalJKSSignProvider 57 LOGGER.error("crl is not X509CRL"); in getCrl() 62 LOGGER.error("read CRL File has IOException!"); in getCrl() 65 LOGGER.error("Generate x509 CRL failed!"); in getCrl() 82 LOGGER.error("file is invalid: " + publicCertsFile + System.lineSeparator(), e); in checkPublicKeyPath()
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/api/ |
| D | CertTools.java | 61 private static final Logger LOGGER = LogManager.getLogger(ServiceApi.class); field in CertTools 85 LOGGER.debug(exception.getMessage(), exception); in generateRootCaCert() 109 LOGGER.debug(exception.getMessage(), exception); in generateSubCert() 137 LOGGER.debug(exception.getMessage(), exception); in generateCert() 163 LOGGER.debug(exception.getMessage(), exception); in generateEndCert() 185 LOGGER.debug(exception.getMessage(), exception); in generateCsr()
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/ |
| D | VerifyHelper.java | 70 private static final Logger LOGGER = LogManager.getLogger(VerifyHelper.class); field in VerifyHelper 94 LOGGER.debug(exception.getMessage(), exception); in verifySignature() 121 LOGGER.debug(exception.getMessage(), exception); in certStoreToCertList() 162 LOGGER.debug(exception.getMessage(), exception); in verify() 175 LOGGER.warn("sign information does not include signTime"); in getSignTime() 181 LOGGER.warn("get sign time false, use local datetime verify profile cert chain"); in getSignTime() 200 LOGGER.debug(exception.getMessage(), exception); in verifyPkcs()
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool/src/main/java/com/ohos/hapsigntool/ |
| D | HapSignTool.java | 45 private static final Logger LOGGER = LogManager.getLogger(HapSignTool.class); field in HapSignTool 95 LOGGER.debug(exception.getMessage(), exception); in main() 96 LOGGER.error(exception.getMessage()); in main() 118 LOGGER.debug(params.toString()); in processCmd() 119 LOGGER.info("Start {}", params.getMethod()); in processCmd() 122 LOGGER.info(String.format("%s %s", params.getMethod(), "success")); in processCmd() 124 LOGGER.info(String.format("%s %s", params.getMethod(), "failed")); in processCmd() 362 LOGGER.info(VERSION); in version() 369 HelpDocument.printHelp(LOGGER); in help()
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/sign/ |
| D | CodeSigning.java | 81 private static final Logger LOGGER = LogManager.getLogger(CodeSigning.class); field in CodeSigning 148 LOGGER.info("Sign elf successfully."); in getElfCodeSignBlock() 170 LOGGER.info("Start to sign code."); in getCodeSignBlock() 185 LOGGER.debug("Sign hap."); in getCodeSignBlock() 205 LOGGER.info("Sign successfully."); in getCodeSignBlock() 244 LOGGER.info("No native libs."); in signNativeLibs() 311 LOGGER.debug("Sign entry name = " + name); in signFilesFromJar()
|
| D | BcSignedDataGenerator.java | 78 private static final Logger LOGGER = LogManager.getLogger(BcSignedDataGenerator.class); field in BcSignedDataGenerator 111 LOGGER.info("Create a sign info successfully."); in getSignInfo() 214 …LOGGER.error("The generated signature could not be verified " + " using the public key in the cert… in verifySignFromServer() 217 LOGGER.error("The generated signature " + signPair.getFirst() in verifySignFromServer() 220 LOGGER.error("The generated signature " + signPair.getSecond() in verifySignFromServer()
|
| D | VerifyCodeSignature.java | 61 private static final Logger LOGGER = LogManager.getLogger(VerifyCodeSignature.class); field in VerifyCodeSignature 117 LOGGER.info("Not elf file, skip code signing verify"); in verifyElf() 161 LOGGER.info("Not hap or hsp file, skip code signing verify"); in verifyHap()
|
| /developtools/hdc/hdc_rust/src/host/ |
| D | logger.rs | 99 static LOGGER: SimpleHostLogger = SimpleHostLogger; variable 103 log::set_logger(&LOGGER).unwrap(); in logger_init()
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/ |
| D | Zip.java | 41 private static final Logger LOGGER = LogManager.getLogger(Zip.class); field in Zip 83 LOGGER.debug("getZipEndOfCentralDirectory use {} ms", eocdEnd - start); in Zip() 87 LOGGER.debug("getZipCentralDirectory use {} ms", cdEnd - start); in Zip() 95 LOGGER.debug("getZipEntries use {} ms", entryEnd - start); in Zip()
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/utils/ |
| D | HapUtils.java | 45 private static final Logger LOGGER = LogManager.getLogger(HapUtils.class); field in HapUtils 178 LOGGER.error(e.getMessage()); in parseAppIdentifier()
|