Home
last modified time | relevance | path

Searched refs:hash (Results 1 - 25 of 30) sorted by relevance

12

/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/entity/
H A DSignContentInfo.java50 * the data length of hash value
55 * the data of hash value
57 protected byte[] hash; field in SignContentHash
64 SignContentHash(char type, char tag, short algId, int length, byte[] hash) { in SignContentHash() argument
69 this.hash = hash; in SignContentHash()
70 this.contentHashLen = CONTENT_HEAD_SIZE + this.hash.length; in SignContentHash()
92 * @param length the data length of hash value
93 * @param hash the data of hash valu
95 addContentHashData(char type, char tag, short algId, int length, byte[] hash) addContentHashData() argument
[all...]
/developtools/hapsigner/hapsigntool_cpp/hap/entity/src/
H A Dsign_content_info.cpp24 const int length, const std::vector<int8_t> &hash) in SignContentHash()
30 m_hash = hash; in SignContentHash()
31 m_contentHashLen = CONTENT_HEAD_SIZE + hash.size(); in SignContentHash()
42 const int length, const std::vector<int8_t> &hash) in AddContentHashData()
44 SignContentHash signInfo(type, tag, algId, length, hash); in AddContentHashData()
23 SignContentHash(const char type, const char tag, const short algId, const int length, const std::vector<int8_t> &hash) SignContentHash() argument
41 AddContentHashData(const char type, const char tag, const short algId, const int length, const std::vector<int8_t> &hash) AddContentHashData() argument
/developtools/hapsigner/hapsigntool_cpp/signer/src/
H A Dlocal_signer.cpp74 const EVP_MD* hash = NULL;
79 hash = EVP_sha256();
81 hash = EVP_sha384();
90 (EVP_DigestSignInit(hashCtx, &privateKeyCtx, hash, NULL, m_keyPair) <= 0) ||
/developtools/smartperf_host/trace_streamer/src/base/
H A Dstring_help.cpp146 uint32_t hash = 0x11c9dc5; in StrHash() local
151 hash ^= chr; in StrHash()
152 hash = (hash * COLOR_A) & COLOR_B; in StrHash()
154 return hash % maxValue; in StrHash()
/developtools/hapsigner/hapsigntool_cpp/hap/entity/include/
H A Dsign_content_info.h29 const int length, const std::vector<int8_t>& hash);
47 const int length, const std::vector<int8_t> &hash);
/developtools/packing_tool/packing_tool/frameworks/src/
H A Dutils.cpp156 unsigned char hash[SHA256_DIGEST_LENGTH]; in GetSha256Str() local
160 SHA256_Final(hash, &ctx); in GetSha256Str()
162 // Convert hash to hex string in GetSha256Str()
165 ss << std::hex << std::setw(HEX_WIDTH) << std::setfill('0') << static_cast<uint32_t>(hash[i]); in GetSha256Str()
188 unsigned char hash[SHA256_DIGEST_LENGTH]; in GetSha256File() local
189 SHA256_Final(hash, &ctx); in GetSha256File()
191 // Convert hash to hex string in GetSha256File()
194 ss << std::hex << std::setw(HEX_WIDTH) << std::setfill('0') << static_cast<uint32_t>(hash[i]); in GetSha256File()
215 unsigned char hash[SHA256_DIGEST_LENGTH]; in GetSha256Folder() local
216 SHA256_Final(hash, in GetSha256Folder()
[all...]
H A Dpackager.cpp339 std::string hash = Utils::GetSha256File(filePath); in BuildHash() local
340 return PutBuildHash(jsonPath, hash, buildHashFinish); in BuildHash()
343 bool Packager::PutBuildHash(const std::string &jsonPath, const std::string &hash, bool &buildHashFinish) in PutBuildHash() argument
351 moduleJson.SetBuildHash(hash); in PutBuildHash()
H A Dfast_app_packager.cpp842 std::string hash = Utils::GetSha256Folder(inputPath); in GenBuildHash() local
843 if (hash.empty()) { in GenBuildHash()
851 moduleJson.SetBuildHash(hash); in GenBuildHash()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/fsverity/
H A DMerkleTreeBuilder.java66 * @param algorithm hash algorithm
73 * translation inputStream to hash data
77 * @param outputBuffer hash data
110 for (byte[] hash : hashes) { in transInputStreamToHashData()
111 outputBuffer.put(hash, 0, hash.length); in transInputStreamToHashData()
209 * hash data of buffer
212 * @param outputBuffer hash data
232 for (byte[] hash : hashes) { in transInputDataToHashData()
233 outputBuffer.put(hash, in transInputDataToHashData()
[all...]
/developtools/hapsigner/hapsigntool_cpp/codesigning/fsverity/src/
H A Dmerkle_tree_builder.cpp45 for (const auto& hash : hashes) { in TransInputStreamToHashData()
46 outputBuffer->PutData(writeSize + bufStartIdx, hash.data(), hash.size()); in TransInputStreamToHashData()
47 writeSize += hash.size(); in TransInputStreamToHashData()
185 for (const auto& hash : hashes) { in TransInputDataToHashData()
186 outputBuffer->PutData(writeSize + outputStartIdx, hash.data(), hash.size()); in TransInputDataToHashData()
187 writeSize += hash.size(); in TransInputDataToHashData()
/developtools/profiler/device/plugins/ftrace_plugin/tools/device_kernel_version/default/event_formatters/
H A Dftrace_net_event_formatter.cpp33 "vlan_tci=0x%04x protocol=0x%04x ip_summed=%d hash=0x%08x l4_hash=%d len=%u data_len=%u truesize=%u "
36 msg.vlan_tci(), msg.protocol(), msg.ip_summed(), msg.hash(), msg.l4_hash(), msg.len(), msg.data_len(),
53 "vlan_tci=0x%04x protocol=0x%04x ip_summed=%d hash=0x%08x l4_hash=%d len=%u data_len=%u truesize=%u "
56 msg.vlan_tci(), msg.protocol(), msg.ip_summed(), msg.hash(), msg.l4_hash(), msg.len(), msg.data_len(),
136 "vlan_tci=0x%04x protocol=0x%04x ip_summed=%d hash=0x%08x l4_hash=%d len=%u data_len=%u truesize=%u "
139 msg.vlan_tci(), msg.protocol(), msg.ip_summed(), msg.hash(), msg.l4_hash(), msg.len(), msg.data_len(),
170 "vlan_tci=0x%04x protocol=0x%04x ip_summed=%d hash=0x%08x l4_hash=%d len=%u data_len=%u truesize=%u "
173 msg.vlan_tci(), msg.protocol(), msg.ip_summed(), msg.hash(), msg.l4_hash(), msg.len(), msg.data_len(),
189 "vlan_tci=0x%04x protocol=0x%04x ip_summed=%d hash=0x%08x l4_hash=%d len=%u data_len=%u truesize=%u "
192 msg.vlan_tci(), msg.protocol(), msg.ip_summed(), msg.hash(), ms
[all...]
/developtools/hapsigner/hapsigntool_cpp/profile/src/
H A Dpkcs7_data.cpp202 /* hash algorithm */ in InitPkcs7()
734 static int Pkcs7SetSignerInfo(PKCS7_SIGNER_INFO* info, X509* cert, const EVP_MD* hash) in Pkcs7SetSignerInfo() argument
747 X509_ALGOR_set0(info->digest_alg, OBJ_nid2obj(EVP_MD_type(hash)), in Pkcs7SetSignerInfo()
756 static PKCS7_SIGNER_INFO* Pkcs7AddSignature(PKCS7* pkcs7, X509* cert, const EVP_MD* hash) in Pkcs7AddSignature() argument
761 !Pkcs7SetSignerInfo(info, cert, hash) || in Pkcs7AddSignature()
772 static PKCS7_SIGNER_INFO* Pkcs7AddSignerInfo(PKCS7* pkcs7, X509* entityCert, const EVP_MD* hash, int flags) in Pkcs7AddSignerInfo() argument
775 if ((info = Pkcs7AddSignature(pkcs7, entityCert, hash)) == NULL) { in Pkcs7AddSignerInfo()
787 PKCS7* PKCS7Data::Pkcs7Sign(X509* entityCert, STACK_OF(X509)* certs, const EVP_MD* hash, in Pkcs7Sign() argument
795 !Pkcs7AddSignerInfo(pkcs7, entityCert, hash, flags) || in Pkcs7Sign()
/developtools/ace_js2bundle/ace-loader/
H A Dmain.product.js150 const hash = crypto.createHash('sha256')
151 hash.update(projectPath.toString())
152 process.env.hashProjectPath = "_" + hash.digest('hex');
/developtools/packing_tool/adapter/ohos/
H A DPackageUtil.java310 private static String hash(Path path) { in hash() method in PackageUtil
320 LOG.warning("calc hash err: " + e.getMessage()); in hash()
330 LOG.warning("calc hash err: " + e.getMessage()); in hash()
464 String hash = hash(path); in genBuildHash()
465 if (hash.isEmpty()) { in genBuildHash()
484 moduleObject.put(Constants.BUILD_HASH, hash); in genBuildHash()
594 String hash = hash(path); in genBuildHash()
595 if (hash in genBuildHash()
[all...]
/developtools/global_resource_tool/src/
H A Dresource_append.cpp289 string hash = ResourceUtil::GenerateHash(fileInfo.filePath); in ScanFile() local
291 if (!WriteFileInner(outStream, output.Append(hash).GetPath())) { in ScanFile()
461 string hash = ResourceUtil::GenerateHash(filePath); in WriteRawFilesOrResFiles() local
463 if (!WriteFileInner(outStream, output.Append(hash).GetPath())) { in WriteRawFilesOrResFiles()
/developtools/packing_tool/packing_tool/frameworks/test/unittest/packager_test/
H A Dpackager_test.cpp248 std::string hash; in HWTEST_F() local
251 EXPECT_TRUE(packager.PutBuildHash(STAGE_JSON_PATH, hash, buildHashFinish)); in HWTEST_F()
/developtools/packing_tool/packing_tool/frameworks/include/
H A Dpackager.h80 bool PutBuildHash(const std::string &jsonPath, const std::string &hash, bool &buildHashFinish);
/developtools/hapsigner/hapsigntool_cpp/profile/include/
H A Dpkcs7_data.h51 struct std::hash<X509*> { struct in std
/developtools/smartperf_host/trace_streamer/src/parser/ebpf_parser/
H A Debpf_base.h55 std::hash<std::string_view> hashFun_;
/developtools/smartperf_host/trace_streamer/src/parser/hiperf_parser/
H A Dperf_data_parser.h179 std::hash<std::string_view> hashFun_;
/developtools/ace_js2bundle/ace-loader/src/
H A DgenAbc-plugin.js400 const hash = crypto.createHash('sha256');
401 hash.update(content);
402 return hash.digest('hex');
/developtools/hapsigner/hapsigntool_cpp_test/unittest/hapVerify/
H A Dhap_signer_block_utils_test.cpp115 int Pkcs7TestSetSignerInfo(PKCS7_SIGNER_INFO* info, X509* cert, const EVP_MD* hash) in Pkcs7TestSetSignerInfo() argument
128 X509_ALGOR_set0(info->digest_alg, OBJ_nid2obj(EVP_MD_type(hash)), in Pkcs7TestSetSignerInfo()
/developtools/profiler/device/plugins/native_daemon/include/
H A Dvirtual_runtime.h158 // boost library recommendation algorithm to reduce hash collisions.
162 std::hash<uint64_t> hasher; in operator ()()
/developtools/smartperf_host/trace_streamer/src/trace_data/trace_stdtype/
H A Dcommon_stdtype.h81 std::hash<std::string_view> hashFun;
/developtools/smartperf_host/trace_streamer/src/filter/hook_filter/
H A Dnative_hook_filter.h182 std::hash<std::string_view> hashFun_;

Completed in 20 milliseconds

12