Home
last modified time | relevance | path

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

/system/ulib/zircon-internal/include/lib/zircon-internal/
A Dfnv1hash.h40 uint32_t hash = FNV32_OFFSET_BASIS; in fnv1a_tiny() local
41 hash = (hash ^ (n & 0xFF)) * FNV32_PRIME; n >>= 8; in fnv1a_tiny()
42 hash = (hash ^ (n & 0xFF)) * FNV32_PRIME; n >>= 8; in fnv1a_tiny()
43 hash = (hash ^ (n & 0xFF)) * FNV32_PRIME; n >>= 8; in fnv1a_tiny()
44 hash = (hash ^ n) * FNV32_PRIME; in fnv1a_tiny()
45 return ((hash >> bits) ^ hash) & ((1 << bits) - 1); in fnv1a_tiny()
/system/ulib/fvm/
A Dfvm.cpp46 reinterpret_cast<const void*>(header->hash + sizeof(header->hash)); in fvm_check_hash()
47 uint8_t empty_hash[sizeof(header->hash)]; in fvm_check_hash()
52 digest.Update(metadata, offsetof(fvm::fvm_t, hash)); in fvm_check_hash()
55 metadata_size - (offsetof(fvm::fvm_t, hash) + sizeof(header->hash))); in fvm_check_hash()
57 return digest == header->hash; in fvm_check_hash()
90 memset(header->hash, 0, sizeof(header->hash)); in fvm_update_hash()
92 const uint8_t* hash = digest.Hash(metadata, metadata_size); in fvm_update_hash() local
93 memcpy(header->hash, hash, sizeof(header->hash)); in fvm_update_hash()
/system/ulib/ftl/utils/
A Dftl_mc.c37 static ui32 hash(ui32 mpn, ui32 num_mpgs) { in hash() function
60 if (entry->hash_head != &cache->hash_tbl[hash(entry->mpn, cache->num_mpgs)]) { in check_cache()
217 entry = cache->hash_tbl[hash(mpn, cache->num_mpgs)]; in ftlmcGetPage()
303 hash_ndx = hash(mpn, cache->num_mpgs); in ftlmcGetPage()
402 entry = cache->hash_tbl[hash(mpn, cache->num_mpgs)]; in ftlmcInCache()
/system/ulib/inet6/
A Dinet6.c151 uint32_t hash = fnv1a32(ip, sizeof(*ip)); in mac_cache_hash() local
152 return ((hash >> 8) ^ hash) & 0xff; in mac_cache_hash()
/system/ulib/fvm/include/fvm/
A Dfvm.h35 uint8_t hash[SHA256_DIGEST_LENGTH]; member
/system/ulib/intel-hda/include/intel-hda/utils/
A Dintel-audio-dsp-ipc.h510 uint8_t hash[32]; member

Completed in 11 milliseconds