Home
last modified time | relevance | path

Searched refs:LOGGER (Results 1 – 25 of 28) sorted by relevance

12

/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/sign/
DSignBin.java51 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()
110LOGGER.error("The profile block head offset is overflow interger range, offset: " + offset); in writeBlockDataToFile()
119LOGGER.error("The sign block head offset is overflow integer range, offset: " + offset); in writeBlockDataToFile()
[all …]
DSignElf.java58 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 …]
DBcPkcs7Generator.java75 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()
258LOGGER.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/
DVerifyAndParseProvision.java35 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()
71LOGGER.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()
DVerifyElf.java61 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 …]
DVerifyHap.java70 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 …]
DHapVerify.java76 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()
290LOGGER.info("+++++++++++++++++++++++++++certificate #{} +++++++++++++++++++++++++++++++", i); in getCertChain()
357 LOGGER.info("version is: {}, number of block is: {}", signBlockVersion, signBlockCount); in parserContentinfo()
384 LOGGER.error( in parserContentinfo()
390LOGGER.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/
DDigestUtils.java46 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()
DHashUtils.java36 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()
DFileUtils.java53 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 …]
DKeyPairTools.java87 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()
DParamProcessUtil.java39 private static final Logger LOGGER = LogManager.getLogger(ParamProcessUtil.class); field in ParamProcessUtil
68 LOGGER.warn("delete files failed!"); in delDir()
DCertUtils.java58 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/
DSignerFactory.java49 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/
DSignProvider.java90 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 …]
DLocalJKSSignProvider.java44 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/
DCertTools.java61 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/
DVerifyHelper.java70 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/
DHapSignTool.java45 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/
DCodeSigning.java81 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()
DBcSignedDataGenerator.java78 private static final Logger LOGGER = LogManager.getLogger(BcSignedDataGenerator.class); field in BcSignedDataGenerator
111 LOGGER.info("Create a sign info successfully."); in getSignInfo()
214LOGGER.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()
DVerifyCodeSignature.java61 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/
Dlogger.rs99 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/
DZip.java41 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/
DHapUtils.java45 private static final Logger LOGGER = LogManager.getLogger(HapUtils.class); field in HapUtils
178 LOGGER.error(e.getMessage()); in parseAppIdentifier()

12