Home
last modified time | relevance | path

Searched refs:hash (Results 1 – 25 of 122) sorted by relevance

12345

/system/core/libutils/
DJenkinsHash.cpp30 hash_t JenkinsHashWhiten(uint32_t hash) { in JenkinsHashWhiten() argument
31 hash += (hash << 3); in JenkinsHashWhiten()
32 hash ^= (hash >> 11); in JenkinsHashWhiten()
33 hash += (hash << 15); in JenkinsHashWhiten()
34 return hash; in JenkinsHashWhiten()
37 uint32_t JenkinsHashMixBytes(uint32_t hash, const uint8_t* bytes, size_t size) { in JenkinsHashMixBytes() argument
41 hash = JenkinsHashMix(hash, (uint32_t)size); in JenkinsHashMixBytes()
45 hash = JenkinsHashMix(hash, data); in JenkinsHashMixBytes()
51 hash = JenkinsHashMix(hash, data); in JenkinsHashMixBytes()
53 return hash; in JenkinsHashMixBytes()
[all …]
/system/extras/ioshark/
Dcompile_ioshark.h31 u_int32_t hash, i; in jenkins_one_at_a_time_hash() local
33 for(hash = i = 0; i < len; ++i) { in jenkins_one_at_a_time_hash()
34 hash += key[i]; in jenkins_one_at_a_time_hash()
35 hash += (hash << 10); in jenkins_one_at_a_time_hash()
36 hash ^= (hash >> 6); in jenkins_one_at_a_time_hash()
38 hash += (hash << 3); in jenkins_one_at_a_time_hash()
39 hash ^= (hash >> 11); in jenkins_one_at_a_time_hash()
40 hash += (hash << 15); in jenkins_one_at_a_time_hash()
41 return hash; in jenkins_one_at_a_time_hash()
Dcompile_ioshark_subr.c68 u_int32_t hash; in files_db_lookup() local
71 hash = jenkins_one_at_a_time_hash(pathname, strlen(pathname)); in files_db_lookup()
72 hash %= FILE_DB_HASHSIZE; in files_db_lookup()
73 db_node = files_db_buckets[hash]; in files_db_lookup()
84 u_int32_t hash; in files_db_add() local
89 hash = jenkins_one_at_a_time_hash(filename, strlen(filename)); in files_db_add()
90 hash %= FILE_DB_HASHSIZE; in files_db_add()
96 db_node->next = files_db_buckets[hash]; in files_db_add()
98 files_db_buckets[hash] = db_node; in files_db_add()
/system/core/libutils/include/utils/
DJenkinsHash.h35 inline uint32_t JenkinsHashMix(uint32_t hash, uint32_t data) { in JenkinsHashMix() argument
36 hash += data; in JenkinsHashMix()
37 hash += (hash << 10); in JenkinsHashMix()
38 hash ^= (hash >> 6); in JenkinsHashMix()
39 return hash; in JenkinsHashMix()
42 hash_t JenkinsHashWhiten(uint32_t hash);
45 uint32_t JenkinsHashMixBytes(uint32_t hash, const uint8_t* bytes, size_t size);
47 uint32_t JenkinsHashMixShorts(uint32_t hash, const uint16_t* shorts, size_t size);
/system/tools/hidl/test/hash_test/
DAndroid.bp8 " -r test.hash:system/tools/hidl/test/hash_test/correct_hash" +
9 " test.hash.hash@1.0" +
13 " -r test.hash:system/tools/hidl/test/hash_test/missing_hash" +
14 " test.hash.hash@1.0 2> /dev/null)" +
18 " -r test.hash:system/tools/hidl/test/hash_test/incorrect_hash" +
19 " test.hash.hash@1.0 2> /dev/null)" +
21 "$(location hidl-gen) -L hash " +
23 " -r test.hash:system/tools/hidl/test/hash_test/incorrect_hash" +
24 " test.hash.hash@1.0 > /dev/null" +
31 "correct_hash/hash/1.0/IHash.hal",
[all …]
/system/core/libcutils/
Dhashmap.cpp29 int hash; member
37 int (*hash)(void* key); member
44 int (*hash)(void* key), bool (*equals)(void* keyA, void* keyB)) { in hashmapCreate()
45 assert(hash != NULL); in hashmapCreate()
69 map->hash = hash; in hashmapCreate()
84 int h = map->hash(key); in hashKey()
96 static inline size_t calculateIndex(size_t bucketCount, int hash) { in calculateIndex() argument
97 return ((size_t) hash) & (bucketCount - 1); in calculateIndex()
117 size_t index = calculateIndex(newBucketCount, entry->hash); in expandIfNecessary()
169 static Entry* createEntry(void* key, int hash, void* value) { in createEntry() argument
[all …]
/system/bt/btif/test/
Dbtif_keystore_test.cc41 std::string hash = "test"; in TEST_F() local
43 std::string encrypted_hash = btif_keystore_->Encrypt(hash, 0); in TEST_F()
47 EXPECT_EQ(hash, decrypted_hash); in TEST_F()
51 std::string hash = ""; in TEST_F() local
53 std::string encrypted_hash = btif_keystore_->Encrypt(hash, 0); in TEST_F()
59 std::string hash = ""; in TEST_F() local
61 std::string decrypted_hash = btif_keystore_->Decrypt(hash); in TEST_F()
/system/core/fs_mgr/libfs_avb/
Dsha.h27 uint8_t hash[SHA256_DIGEST_LENGTH]; variable
39 SHA256_Final(hash, &sha256_ctx); in finalize()
40 return hash; in finalize()
47 uint8_t hash[SHA512_DIGEST_LENGTH]; variable
59 SHA512_Final(hash, &sha512_ctx); in finalize()
60 return hash; in finalize()
/system/update_engine/
Domaha_response_handler_action_unittest.cc135 expected_hash += package.hash + ":"; in DoTest()
188 .hash = kPayloadHashHex}); in TEST_F()
195 EXPECT_EQ(expected_hash_, install_plan.payloads[0].hash); in TEST_F()
214 .hash = kPayloadHashHex}); in TEST_F()
222 EXPECT_EQ(expected_hash_, install_plan.payloads[0].hash); in TEST_F()
234 {.payload_urls = {kLongName}, .size = 12, .hash = kPayloadHashHex}); in TEST_F()
247 EXPECT_EQ(expected_hash_, install_plan.payloads[0].hash); in TEST_F()
259 {.payload_urls = {kLongName}, .size = 12, .hash = kPayloadHashHex}); in TEST_F()
270 EXPECT_EQ(expected_hash_, install_plan.payloads[0].hash); in TEST_F()
292 {.payload_urls = {kLongName}, .size = 1, .hash = kPayloadHashHex}); in TEST_F()
[all …]
/system/bt/gd/hci/
Daddress_with_type.h63 uint8_t hash[3]; in IsRpaThatMatchesIrk() local
64 hash[0] = address_.address[5]; in IsRpaThatMatchesIrk()
65 hash[1] = address_.address[4]; in IsRpaThatMatchesIrk()
66 hash[2] = address_.address[3]; in IsRpaThatMatchesIrk()
67 if (memcmp(computed_hash.data(), &hash[0], 3) == 0) { in IsRpaThatMatchesIrk()
115 struct hash<bluetooth::hci::AddressWithType> {
123 return std::hash<uint64_t>{}(int_addr);
Daddress_with_type_test.cc38 struct std::hash<bluetooth::hci::AddressWithType> hasher; in TEST()
52 struct std::hash<AddressWithType> hasher; in TEST()
63 struct std::hash<bluetooth::hci::AddressWithType> hasher; in TEST()
/system/bt/gd/storage/
Dle_device.h78 friend std::hash<LeDevice>;
92 struct hash<bluetooth::storage::LeDevice> {
94 std::size_t pointer_hash_1 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
95 std::size_t pointer_hash_2 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
96 std::size_t addr_hash = std::hash<std::string>{}(val.section_);
Dclassic_device.h83 friend std::hash<ClassicDevice>;
100 struct hash<bluetooth::storage::ClassicDevice> {
102 std::size_t pointer_hash_1 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
103 std::size_t pointer_hash_2 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
104 std::size_t addr_hash = std::hash<std::string>{}(val.section_);
Ddevice.h174 friend std::hash<Device>;
197 struct hash<bluetooth::storage::Device> {
199 std::size_t pointer_hash_1 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
200 std::size_t pointer_hash_2 = std::hash<bluetooth::storage::ConfigCache*>{}(val.config_);
201 std::size_t addr_hash = std::hash<std::string>{}(val.section_);
/system/ca-certificates/
DREADME.cacerts1 The filenames in the cacerts directory are in the format of <hash>.<n>
2 where "hash" is the subject hash produced by:
/system/update_engine/payload_consumer/
Dverity_writer_android_unittest.cc55 brillo::Blob hash = {0x1c, 0xea, 0xf7, 0x3d, 0xf4, 0x0e, 0x53, in TEST_F() local
58 memcpy(part_data.data() + 4096, hash.data(), hash.size()); in TEST_F()
93 brillo::Blob hash = {0xad, 0x7f, 0xac, 0xb2, 0x58, 0x6f, 0xc6, 0xe9, in TEST_F() local
97 memcpy(part_data.data() + 4096, hash.data(), hash.size()); in TEST_F()
Dpayload_verifier.cc226 bool PayloadVerifier::PadRSASHA256Hash(brillo::Blob* hash, size_t rsa_size) { in PadRSASHA256Hash() argument
227 TEST_AND_RETURN_FALSE(hash->size() == kSHA256Size); in PadRSASHA256Hash()
238 rsa_size - hash->size() - sizeof(kSHA256DigestInfoPrefix) - 3; in PadRSASHA256Hash()
245 *hash, in PadRSASHA256Hash()
248 *hash = std::move(padded_result); in PadRSASHA256Hash()
249 TEST_AND_RETURN_FALSE(hash->size() == rsa_size); in PadRSASHA256Hash()
/system/tools/hidl/test/hash_test/incorrect_hash/
Dcurrent.txt1 b19939ecb4f877820df49b684f3164f0a3f9aa18743a3521f3bd04e4a06fed64 test.hash.hash@1.0::IHash
/system/tools/hidl/test/hash_test/correct_hash/
Dcurrent.txt1 b19939ecb4f877820df49b684f3164f0a3f9aa18743a3521f3bd04e4a06fed64 test.hash.hash@1.0::IHash # commen…
/system/apex/apexd/
Dapex_shim.cpp75 uint8_t hash[SHA512_DIGEST_LENGTH]; in CalculateSha512() local
76 SHA512_Final(hash, &ctx); in CalculateSha512()
80 ss << std::setw(2) << std::setfill('0') << static_cast<int>(hash[i]); in CalculateSha512()
91 std::string hash; in GetAllowedHashes() local
92 if (!ReadFileToString(file_path, &hash, false /* follows symlinks */)) { in GetAllowedHashes()
95 std::vector<std::string> allowed_hashes = android::base::Split(hash, "\n"); in GetAllowedHashes()
/system/tools/hidl/hashing/
DHash.cpp68 std::string Hash::hexString(const std::vector<uint8_t>& hash) { in hexString() argument
71 for (uint8_t i : hash) { in hexString()
142 std::string hash = match.str(1); in readHashFile() local
145 if (hash.size() == 0 && fqName.size() == 0) { in readHashFile()
149 if (hash.size() == 0 || fqName.size() == 0) { in readHashFile()
155 file->hashes[fqName].push_back(hash); in readHashFile()
/system/libziparchive/
Dzip_cd_entry_map.cc40 return static_cast<uint32_t>(std::hash<std::string_view>{}(name)); in ComputeHash()
46 const uint32_t hash = ComputeHash(name); in GetCdEntryOffset() local
49 uint32_t ent = hash & (hash_table_size_ - 1); in GetCdEntryOffset()
62 const uint64_t hash = ComputeHash(name); in AddToMap() local
63 uint32_t ent = hash & (hash_table_size_ - 1); in AddToMap()
/system/chre/build/sys_support/qcom/
Duimage_v2.lcs47 /* SysV hash section */
48 .hash : { *(.hash) } : phdr1
50 /* GNU hash section */
51 .gnu.hash : { *(.gnu.hash) }
/system/tools/hidl/
DAndroid.bp95 "libhidl-gen-hash",
101 "libhidl-gen-hash",
133 "libhidl-gen-hash",
139 "libhidl-gen-hash",
158 "libhidl-gen-hash",
/system/memory/libmemunreachable/
DLeak.h30 struct hash<android::Leak::Backtrace> {
45 std::hash<T> hasher;

12345