/system/core/libutils/ |
D | JenkinsHash.cpp | 30 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/ |
D | compile_ioshark.h | 31 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()
|
D | compile_ioshark_subr.c | 68 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/ |
D | JenkinsHash.h | 35 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/ |
D | Android.bp | 8 " -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/ |
D | hashmap.cpp | 29 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/ |
D | btif_keystore_test.cc | 41 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/ |
D | sha.h | 27 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/ |
D | omaha_response_handler_action_unittest.cc | 135 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/ |
D | address_with_type.h | 63 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);
|
D | address_with_type_test.cc | 38 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/ |
D | le_device.h | 78 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_);
|
D | classic_device.h | 83 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_);
|
D | device.h | 174 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/ |
D | README.cacerts | 1 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/ |
D | verity_writer_android_unittest.cc | 55 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()
|
D | payload_verifier.cc | 226 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/ |
D | current.txt | 1 b19939ecb4f877820df49b684f3164f0a3f9aa18743a3521f3bd04e4a06fed64 test.hash.hash@1.0::IHash
|
/system/tools/hidl/test/hash_test/correct_hash/ |
D | current.txt | 1 b19939ecb4f877820df49b684f3164f0a3f9aa18743a3521f3bd04e4a06fed64 test.hash.hash@1.0::IHash # commen…
|
/system/apex/apexd/ |
D | apex_shim.cpp | 75 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/ |
D | Hash.cpp | 68 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/ |
D | zip_cd_entry_map.cc | 40 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/ |
D | uimage_v2.lcs | 47 /* SysV hash section */ 48 .hash : { *(.hash) } : phdr1 50 /* GNU hash section */ 51 .gnu.hash : { *(.gnu.hash) }
|
/system/tools/hidl/ |
D | Android.bp | 95 "libhidl-gen-hash", 101 "libhidl-gen-hash", 133 "libhidl-gen-hash", 139 "libhidl-gen-hash", 158 "libhidl-gen-hash",
|
/system/memory/libmemunreachable/ |
D | Leak.h | 30 struct hash<android::Leak::Backtrace> { 45 std::hash<T> hasher;
|