/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 | 37 u_int32_t hash, i; in jenkins_one_at_a_time_hash() local 39 for(hash = i = 0; i < len; ++i) { in jenkins_one_at_a_time_hash() 40 hash += key[i]; in jenkins_one_at_a_time_hash() 41 hash += (hash << 10); in jenkins_one_at_a_time_hash() 42 hash ^= (hash >> 6); in jenkins_one_at_a_time_hash() 44 hash += (hash << 3); in jenkins_one_at_a_time_hash() 45 hash ^= (hash >> 11); in jenkins_one_at_a_time_hash() 46 hash += (hash << 15); in jenkins_one_at_a_time_hash() 47 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 | 17 " -r test.hash:system/tools/hidl/test/hash_test/correct_hash" + 18 " test.hash.hash@1.0" + 22 " -r test.hash:system/tools/hidl/test/hash_test/missing_hash" + 23 " test.hash.hash@1.0 2> /dev/null)" + 27 " -r test.hash:system/tools/hidl/test/hash_test/incorrect_hash" + 28 " test.hash.hash@1.0 2> /dev/null)" + 30 "$(location hidl-gen) -L hash " + 32 " -r test.hash:system/tools/hidl/test/hash_test/incorrect_hash" + 33 " test.hash.hash@1.0 > /dev/null" + 40 "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/security/mls/mls-rs-crypto-boringssl/src/ |
D | hash.rs | 58 pub fn hash(&self, data: &[u8]) -> Vec<u8> { in hash() method 60 Hash::Sha256 => digest::Sha256::hash(data).to_vec(), in hash() 61 Hash::Sha384 => digest::Sha384::hash(data).to_vec(), in hash() 62 Hash::Sha512 => digest::Sha512::hash(data).to_vec(), in hash() 87 let hash = Hash::new(CipherSuite::P256_AES128).unwrap(); in sha256() localVariable 89 hash.hash(&decode_hex::<4>("74ba2521")), in sha256() 96 let hash = Hash::new(CipherSuite::P384_AES256).unwrap(); in sha384() localVariable 98 hash.hash(b"abc"), in sha384() 105 let hash = Hash::new(CipherSuite::CURVE448_CHACHA).unwrap(); in sha512() localVariable 107 hash.hash(&decode_hex::<4>("23be86d5")), in sha512()
|
/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/chre/apps/nearby/location/lbs/contexthub/nanoapps/nearby/ |
D | bloom_filter.cc | 50 uint32_t hash[SHA2_HASH_WORDS]; in MayContain() local 51 sha256(key, static_cast<uint32_t>(size), hash, sizeof(hash)); in MayContain() 54 hash[i] = BSWAP32(hash[i]); in MayContain() 55 uint32_t bitPos = hash[i] % (filter_bit_size_); in MayContain()
|
/system/chre/util/ |
D | hash.cc | 32 uint32_t hash = kFnvOffset; in fnv1a32Hash() local 34 hash ^= data[i]; in fnv1a32Hash() 35 hash *= kFnvPrime; in fnv1a32Hash() 37 return hash; in fnv1a32Hash()
|
/system/apex/apexd/ |
D | apex_sha.cpp | 50 uint8_t hash[SHA512_DIGEST_LENGTH]; in CalculateSha512() local 51 SHA512_Final(hash, &ctx); in CalculateSha512() 55 ss << std::setw(2) << std::setfill('0') << static_cast<int>(hash[i]); in CalculateSha512() 77 uint8_t hash[SHA256_DIGEST_LENGTH]; in CalculateSha256() local 78 SHA256_Final(hash, &ctx); in CalculateSha256() 82 ss << std::setw(2) << std::setfill('0') << static_cast<int>(hash[i]); in CalculateSha256()
|
/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 | 63 brillo::Blob hash = {0x1c, 0xea, 0xf7, 0x3d, 0xf4, 0x0e, 0x53, in TEST_F() local 66 memcpy(part_data.data() + 4096, hash.data(), hash.size()); in TEST_F() 112 brillo::Blob hash = {0xad, 0x7f, 0xac, 0xb2, 0x58, 0x6f, 0xc6, 0xe9, in TEST_F() local 116 memcpy(part_data.data() + 4096, hash.data(), hash.size()); in TEST_F() 138 brillo::Blob hash = {0xad, 0x7f, 0xac, 0xb2, 0x58, 0x6f, 0xc6, 0xe9, in TEST_F() local 143 part_data.data() + partition_.hash_tree_offset, hash.data(), hash.size()); in TEST_F()
|
D | payload_verifier.cc | 223 bool PayloadVerifier::PadRSASHA256Hash(brillo::Blob* hash, size_t rsa_size) { in PadRSASHA256Hash() argument 224 TEST_AND_RETURN_FALSE(hash->size() == kSHA256Size); in PadRSASHA256Hash() 235 rsa_size - hash->size() - sizeof(kSHA256DigestInfoPrefix) - 3; in PadRSASHA256Hash() 242 *hash, in PadRSASHA256Hash() 245 *hash = std::move(padded_result); in PadRSASHA256Hash() 246 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/aidl/build/ |
D | aidl_test.go | 868 "aidl_api/foo/1/.hash": nil, 872 "aidl_api/foo/1/.hash": nil, 893 "aidl_api/foo/1/.hash": nil, 919 "aidl_api/foo/1/.hash": nil, 945 "aidl_api/foo/1/.hash": nil, 1060 "aidl_api/foo/1/.hash": nil, 1195 "aidl_api/foo/1/.hash": nil, 1197 "aidl_api/foo/2/.hash": nil, 1366 "aidl_api/myiface/1/.hash": nil, 1368 "aidl_api/myiface/2/.hash": nil, [all …]
|
/system/security/keystore2/src/database/ |
D | perboot.rs | 49 impl std::hash::Hash for AuthTokenEntryWrap { 50 fn hash<H: std::hash::Hasher>(&self, state: &mut H) { in hash() method 51 AuthTokenId::from_auth_token(&self.0.auth_token).hash(state) in hash()
|
/system/tools/hidl/test/hash_test/correct_hash/ |
D | current.txt | 1 b19939ecb4f877820df49b684f3164f0a3f9aa18743a3521f3bd04e4a06fed64 test.hash.hash@1.0::IHash # commen…
|
/system/libziparchive/ |
D | zip_cd_entry_map.cc | 20 return static_cast<uint32_t>(std::hash<std::string_view>{}(name)); in ComputeHash() 33 const uint32_t hash = ComputeHash(name); in GetCdEntryOffset() local 36 uint32_t ent = hash & (hash_table_size_ - 1); in GetCdEntryOffset() 50 const uint64_t hash = ComputeHash(name); in AddToMap() local 51 uint32_t ent = hash & (hash_table_size_ - 1); in AddToMap()
|
/system/tools/aidl/tests/ |
D | aidl_test_client_ndk_trunk_stable.cpp | 70 std::string hash; in TEST_F() local 72 auto status = service->getInterfaceHash(&hash); in TEST_F() 75 EXPECT_EQ("notfrozen", hash); in TEST_F() 77 EXPECT_EQ("notfrozen", ITrunkStableTest::hash); in TEST_F() 79 EXPECT_EQ("88311b9118fb6fe9eff4a2ca19121de0587f6d5f", hash); in TEST_F() 81 EXPECT_EQ("88311b9118fb6fe9eff4a2ca19121de0587f6d5f", ITrunkStableTest::hash); in TEST_F()
|
/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 | 106 "libhidl-gen-hash", 112 "libhidl-gen-hash", 143 "libhidl-gen-hash", 149 "libhidl-gen-hash", 168 "libhidl-gen-hash",
|
/system/extras/simpleperf/scripts/purgatorio/templates/ |
D | main.js | 24 var hash = 0 32 hash += weight * (name.charCodeAt(i) % mod) 36 if (maxHash > 0) { hash = hash / maxHash } 38 return hash
|
/system/update_engine/aosp/ |
D | update_attempter_android_integration_test.cc | 276 brillo::Blob hash; in ApplyPayload() local 277 HashCalculator::RawHashOfFile(new_part_.path(), &hash); in ApplyPayload() 280 partition->mutable_new_partition_info()->set_hash(hash.data(), hash.size()); in ApplyPayload() 286 HashCalculator::RawHashOfFile(old_part_.path(), &hash); in ApplyPayload() 288 partition->mutable_old_partition_info()->set_hash(hash.data(), in ApplyPayload() 289 hash.size()); in ApplyPayload() 304 HashCalculator::RawHashOfFile(payload_file_.path(), &hash); in ApplyPayload() 312 ("=" + brillo::data_encoding::Base64Encode(hash))}, in ApplyPayload()
|
/system/memory/libmemunreachable/ |
D | Leak.h | 30 struct hash<android::Leak::Backtrace> { 45 std::hash<T> hasher;
|