/system/core/libutils/ |
H A D | JenkinsHash.cpp | 17 /* Implementation of Jenkins one-at-a-time hash function. These choices are 30 hash_t JenkinsHashWhiten(uint32_t hash) { argument 31 hash += (hash << 3); 32 hash ^= (hash >> 11); 33 hash += (hash << 15); 34 return hash; 37 uint32_t JenkinsHashMixBytes(uint32_t hash, cons argument 56 JenkinsHashMixShorts(uint32_t hash, const uint16_t* shorts, size_t size) argument [all...] |
/system/core/include/utils/ |
H A D | JenkinsHash.h | 17 /* Implementation of Jenkins one-at-a-time hash function. These choices are 29 /* The Jenkins hash of a sequence of 32 bit words A, B, C is: 35 inline uint32_t JenkinsHashMix(uint32_t hash, uint32_t data) { argument 36 hash += data; 37 hash += (hash << 10); 38 hash ^= (hash >> 6); 39 return hash; 42 hash_t JenkinsHashWhiten(uint32_t hash); [all...] |
/system/bt/osi/src/ |
H A D | hash_functions.c | 36 hash_index_t hash = 5381; local 40 hash = ((hash << 5) + hash ) + name[i]; 41 return hash;
|
/system/core/metricsd/uploader/ |
H A D | metrics_hashes.cc | 27 // Converts the 8-byte prefix of an MD5 hash into a uint64 value. 28 inline uint64_t HashToUInt64(const std::string& hash) { argument 30 DCHECK_GE(hash.size(), sizeof(value)); 31 memcpy(&value, hash.data(), sizeof(value)); 38 // Create an MD5 hash of the given |name|, represented as a byte buffer
|
H A D | sender.h | 26 // Sends a message |content| with its sha1 hash |hash| 27 virtual bool Send(const std::string& content, const std::string& hash) = 0;
|
H A D | metrics_hashes_unittest.cc | 38 uint64_t hash = HashMetricName(cases[i].input); local 39 std::string hash_hex = base::StringPrintf("0x%016" PRIx64, hash);
|
H A D | sender_http.h | 31 // Sends |content| whose SHA1 hash is |hash| to server_url with a synchronous 33 bool Send(const std::string& content, const std::string& hash) override;
|
H A D | sender_http.cc | 31 const std::string hash = local 34 brillo::http::HeaderList headers = {{"X-Chrome-UMA-Log-SHA1", hash}};
|
H A D | metrics_log_base.cc | 69 uint64_t hash = metrics::HashMetricName(value); local 73 // that happens, all we get to see (server side) is a hash of the histogram 77 VLOG(1) << "Metrics: Hash numeric [" << value << "]=[" << hash << "]"; local 79 return hash;
|
/system/core/libcutils/ |
H A D | hashmap.c | 29 int hash; member in struct:Entry 37 int (*hash)(void* key); member in struct:Hashmap 44 int (*hash)(void* key), bool (*equals)(void* keyA, void* keyB)) { 45 assert(hash != NULL); 69 map->hash = hash; 84 int h = map->hash(key); 100 static inline size_t calculateIndex(size_t bucketCount, int hash) { argument 101 return ((size_t) hash) & (bucketCount - 1); 121 size_t index = calculateIndex(newBucketCount, entry->hash); 173 createEntry(void* key, int hash, void* value) argument 197 int hash = hashKey(map, key); local 229 int hash = hashKey(map, key); local 244 int hash = hashKey(map, key); local 260 int hash = hashKey(map, key); local 292 int hash = hashKey(map, key); local [all...] |
/system/core/crash_reporter/ |
H A D | warn_collector.l | 114 uint32_t hash = 0; 116 hash = (hash << 5) + hash + *string++; 118 return hash; 123 * (unless warnings with the same hash also happens in tandem, which is even 126 static int HashSeen(uint32_t hash) { 127 int word_index = (hash & HASH_BITMAP_MASK) / 32; 128 int bit_index = (hash & HASH_BITMAP_MASK) % 32; 132 static void SetHashSeen(uint32_t hash) { [all...] |
/system/core/include/mincrypt/ |
H A D | rsa.h | 51 const uint8_t* hash,
|
H A D | hash-internal.h | 42 const uint8_t* (* const hash)(const void*, int, uint8_t*); member in struct:HASH_VTAB 56 #define HASH_hash(data, len, digest) (ctx)->f->hash(data, len, digest)
|
/system/core/metricsd/uploader/mock/ |
H A D | sender_mock.cc | 23 bool SenderMock::Send(const std::string& content, const std::string& hash) { argument
|
H A D | sender_mock.h | 30 bool Send(const std::string& content, const std::string& hash) override;
|
/system/bt/btcore/src/ |
H A D | bdaddr.c | 96 hash_index_t hash = 5381; local 99 hash = ((hash << 5) + hash) + bytes[i]; 100 return hash;
|
/system/core/libmemunreachable/ |
H A D | Leak.h | 25 // Custom std::hash specialization so that Leak::Backtrace can be used 30 struct hash<Leak::Backtrace> { struct in namespace:std 45 std::hash<T> hasher;
|
/system/update_engine/ |
H A D | omaha_response_handler_action_unittest.cc | 105 SetString(kPrefsUpdateCheckResponseHash, in.hash)) 149 in.hash = "HASH+"; 156 EXPECT_EQ(in.hash, install_plan.payload_hash); 174 in.hash = "HASHj+"; 182 EXPECT_EQ(in.hash, install_plan.payload_hash); 195 in.hash = "HASHj+"; 203 EXPECT_EQ(in.hash, install_plan.payload_hash); 224 in.payload_urls.push_back("http://test.should/need/hash.checks.signed"); 226 in.hash = "HASHj+"; 235 EXPECT_EQ(in.hash, install_pla [all...] |
H A D | omaha_response.h | 46 std::string hash; member in struct:chromeos_update_engine::OmahaResponse
|
/system/update_engine/common/ |
H A D | hash_calculator_unittest.cc | 56 EXPECT_EQ(kExpectedHash, calc.hash()); 67 EXPECT_EQ(kExpectedHash, calc.hash()); 82 EXPECT_EQ(kExpectedHash, calc_next.hash()); 110 EXPECT_EQ("NZf8k6SPBkYMvhaX8YgzuMgbkLP1XZ+neM8K5wcSsf8=", calc.hash()); 125 EXPECT_EQ(kExpectedHash, calc.hash()); 136 EXPECT_EQ("qqlAJmTxpB9A67xSyZk+tmrrNmYClY/fqig7ceZNsSM=", calc.hash());
|
/system/update_engine/payload_consumer/ |
H A D | payload_verifier.h | 45 // out_hash_data with the decoded raw hash. Returns true if successful, 51 // Pads a SHA256 hash so that it may be encrypted/signed with RSA2048 53 // hash should be a pointer to vector of exactly 256 bits. The vector 56 static bool PadRSA2048SHA256Hash(brillo::Blob* hash);
|
/system/bt/service/common/bluetooth/ |
H A D | uuid.h | 97 // Custom std::hash specialization so that bluetooth::UUID can be used as a key 102 struct hash<bluetooth::UUID> { struct in namespace:std 105 std::hash<std::string> hash_fn;
|
H A D | gatt_identifier.h | 94 friend struct std::hash<bluetooth::GattIdentifier>; 96 // NOTE: Don't forget to update the std::hash specialization below if you 115 // Custom std::hash specialization so that bluetooth::GattIdentifier can be used 120 struct hash<bluetooth::GattIdentifier> { struct in namespace:std 139 std::hash<T> hasher;
|
/system/tpm/trunks/ |
H A D | tpm_generated.cc | 3030 result = Serialize_TPMI_ALG_HASH(value.hash, buffer); 3061 &value->hash, 7356 result = Serialize_TPMI_ALG_HASH(value.hash, buffer); 7377 &value->hash, 7399 result = Serialize_TPMI_ALG_HASH(value.hash, buffer); 7420 &value->hash, 7442 result = Serialize_TPMI_ALG_HASH(value.hash, buffer); 7468 &value->hash, 9440 scoped_ptr<crypto::SecureHash> hash(crypto::SecureHash::Create( 9442 hash [all...] |
/system/extras/libfec/ |
H A D | fec_verity.cpp | 87 /* computes the size of verity hash tree for `file_size' bytes and returns the 88 number of hash tree levels in `verity_levels,' and the number of hashes per 119 buffer `block', and copies the hash to `hash' */ 121 uint8_t *hash) 133 check(hash); 134 SHA256_Final(hash, &ctx); 138 /* computes a verity hash for FEC_BLOCKSIZE bytes from buffer `block' and 146 uint8_t hash[SHA256_DIGEST_LENGTH]; local 148 if (unlikely(verity_hash(f, block, hash) 120 verity_hash(fec_handle *f, const uint8_t *block, uint8_t *hash) argument 159 ecc_read_hashes(fec_handle *f, uint64_t hash_offset, uint8_t *hash, uint64_t data_offset, uint8_t *data) argument 188 uint8_t hash[SHA256_DIGEST_LENGTH]; local [all...] |