Home
last modified time | relevance | path

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

12

/device/linaro/dragonboard/shared/utils/pd-mapper/
Dassoc.c41 unsigned long hash = 0; in assoc_hash() local
46 hash = (hash << 4) + *(v++); in assoc_hash()
47 g = hash & 0xF0000000L; in assoc_hash()
49 hash ^= g >> 24; in assoc_hash()
50 hash &= ~g; in assoc_hash()
53 return hash; in assoc_hash()
68 unsigned long hash; in assoc_get() local
70 hash = assoc_hash(key) % assoc->size; in assoc_get()
71 while (assoc->keys[hash]) { in assoc_get()
72 if (!strcmp(assoc->keys[hash], key)) in assoc_get()
[all …]
/device/generic/goldfish-opengl/system/hwc3/
DDisplayConfig.cpp25 inline void hashCombine(size_t& hash, const T& value) { in hashCombine() argument
26 std::hash<T> hasher; in hashCombine()
27 hash ^= hasher(value) + 0x9e3779b9 + (hash << 6) + (hash >> 2); in hashCombine()
98 size_t hash = 0; in addConfigGroups() local
99 hashCombine(hash, config.mWidth); in addConfigGroups()
100 hashCombine(hash, config.mHeight); in addConfigGroups()
101 hashCombine(hash, config.mDpiX); in addConfigGroups()
102 hashCombine(hash, config.mDpiY); in addConfigGroups()
103 return hash; in addConfigGroups()
/device/google/contexthub/lib/nanohub/
Dnanoapp.c101 static void doPrintHash(FILE *out, const char *pfx, const uint32_t *hash, size_t size, int incremen… in doPrintHash() argument
107 fprintf(out, "%08" PRIx32, hash[pos]); in doPrintHash()
111 void printHash(FILE *out, const char *pfx, const uint32_t *hash, size_t size) in printHash() argument
113 doPrintHash(out, pfx, hash, size, 1); in printHash()
116 void printHashRev(FILE *out, const char *pfx, const uint32_t *hash, size_t size) in printHashRev() argument
118 doPrintHash(out, pfx, hash + size - 1, size, -1); in printHashRev()
/device/google/cuttlefish/host/libs/msg_queue/
Dmsg_queue.cc43 uint64_t hash = HASH_MULTIPLIER; in GenerateQueueKey() local
47 hash = ((hash << 5) + hash) + c; in GenerateQueueKey()
50 return static_cast<key_t>(hash); in GenerateQueueKey()
/device/google/contexthub/util/nanoapp_sign/
Dnanoapp_sign.c287 uint32_t *hash; in handleVerify() local
292 hash = (uint32_t*)sha2finish(&shaState); in handleVerify()
293 printHash(stderr, "File hash", hash, SHA2_HASH_WORDS); in handleVerify()
296 if (!validateSignature(sigPack, rsa, verbose, hash, false)) { in handleVerify()
321 const uint32_t *hash; in handleSign() local
365 hash = sha2finish(&shaState); in handleSign()
367 printHash(stderr, "SHA2 hash", hash, SHA2_HASH_WORDS); in handleSign()
369 memcpy(rsa->num, hash, SHA2_HASH_SIZE); in handleSign()
/device/generic/car/emulator/audio/driver/
Dext_pcm.c54 uint32_t hash = 5381; in str_hash_fn() local
57 hash = ((hash << 5) + hash) + *p; in str_hash_fn()
59 return (int)hash; in str_hash_fn()
Daudio_hw.c1630 uint32_t hash = 5381; in str_hash_fn() local
1633 hash = ((hash << 5) + hash) + *p; in str_hash_fn()
1635 return (int)hash; in str_hash_fn()
/device/google/contexthub/util/nanoapp_encr/
Dnanoapp_encr.c140 const uint32_t *hash = sha2finish(&shaState); in handleEncrypt() local
142 printHash(stderr, "HASH", hash, SHA2_HASH_WORDS); in handleEncrypt()
145 aesCbcEncr(&ctx, hash, outBuf); in handleEncrypt()
147 aesCbcEncr(&ctx, hash + AES_BLOCK_WORDS, outBuf); in handleEncrypt()
/device/google/contexthub/lib/include/nanohub/
Dnanoapp.h31 void printHash(FILE *out, const char *pfx, const uint32_t *hash, size_t size);
32 void printHashRev(FILE *out, const char *pfx, const uint32_t *hash, size_t size);
/device/google/contexthub/firmware/os/platform/stm32/lkr/
Dapp.lkr137 .hash : {
138 *(.hash); *(.hash.*);
/device/google/cuttlefish_vmm/qemu/scripts/
Dgenrepo.py148 hash: str
231 revision=module.hash,
/device/google/tangorpro/cast_auth/mediadrm/
DDrmPlugin.cpp48 std::vector<uint8_t> adjustHash(const std::vector<uint8_t>& hash) { in adjustHash() argument
49 std::vector<uint8_t> adjusted_hash(hash); in adjustHash()
52 if (hash.size() == prefix.hash_size) { in adjustHash()
/device/google/trout/hal/vehicle/2.0/
DDefaultVehicleHalServer.cpp157 int32_t cookie = std::hash<std::string>()(v.stringValue); in handleGenerateFakeDataRequest()
178 int32_t cookie = std::hash<std::string>()(v.stringValue); in handleGenerateFakeDataRequest()
/device/google/cuttlefish_vmm/x86_64-linux-gnu/
Dcargo_version.txt3 commit-hash: 9c4383fb55986096b414d98125421ab87b5fd642
DCargo.lock279 "rustc-hash",
300 "rustc-hash",
1706 "twox-hash",
2391 name = "rustc-hash"
2742 name = "twox-hash"
/device/google/cuttlefish_vmm/aarch64-linux-gnu/
Dcargo_version.txt3 commit-hash: 9c4383fb55986096b414d98125421ab87b5fd642
DCargo.lock279 "rustc-hash",
300 "rustc-hash",
1706 "twox-hash",
2391 name = "rustc-hash"
2742 name = "twox-hash"
/device/google/contexthub/firmware/os/core/
DappSec.c436 const uint32_t *hash = BL.blSha2finish(&state->cbcSha); in appSecVerifyEncryptedData() local
437 bool verified = memcmp(hash, state->dataBytes, SHA2_BLOCK_SIZE) == 0; in appSecVerifyEncryptedData()
/device/linaro/dragonboard/shared/utils/qrtr/
DAndroid.bp41 "src/hash.c",
/device/google/cuttlefish/host/commands/metrics/
Dutils.cc39 const std::hash<std::string> hasher; in Hashing()
/device/google/cuttlefish/common/libs/utils/
Dunique_resource_allocator.h92 return std::hash<const T*>()(std::addressof(resource_wrapper.Get())); in operator()
/device/google/coral/json-c/
DChangeLog9 * CVE-2013-6371: hash collision denial of service
/device/google/redbull/json-c/
DChangeLog9 * CVE-2013-6371: hash collision denial of service
/device/google/sunfish/json-c/
DChangeLog9 * CVE-2013-6371: hash collision denial of service
/device/google/cuttlefish_vmm/qemu/x86_64-linux-gnu/usr/share/qemu/
Dtrace-events-all2790 open_eth_receive_mcast(unsigned idx, uint32_t h0, uint32_t h1) "MCAST: idx = %u, hash: %08x:%08x"
2841 net_rx_pkt_rss_ip4(void) "Calculating IPv4 RSS hash"
2842 net_rx_pkt_rss_ip4_tcp(void) "Calculating IPv4/TCP RSS hash"
2843 net_rx_pkt_rss_ip4_udp(void) "Calculating IPv4/UDP RSS hash"
2844 net_rx_pkt_rss_ip6_tcp(void) "Calculating IPv6/TCP RSS hash"
2845 net_rx_pkt_rss_ip6_udp(void) "Calculating IPv6/UDP RSS hash"
2846 net_rx_pkt_rss_ip6(void) "Calculating IPv6 RSS hash"
2847 net_rx_pkt_rss_ip6_ex(void) "Calculating IPv6/EX RSS hash"
2848 net_rx_pkt_rss_ip6_ex_tcp(void) "Calculating IPv6/EX/TCP RSS hash"
2849 net_rx_pkt_rss_ip6_ex_udp(void) "Calculating IPv6/EX/UDP RSS hash"
[all …]

12