Home
last modified time | relevance | path

Searched refs:hash (Results 751 - 775 of 4317) sorted by relevance

1...<<31323334353637383940>>...173

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/l2_packet/
H A Dl2_packet_linux.c238 u8 hash[SHA1_MAC_LEN]; in l2_packet_receive() local
261 sha1_vector(1, addr, len, hash); in l2_packet_receive()
263 os_memcmp(hash, l2->last_hash, SHA1_MAC_LEN) == 0) { in l2_packet_receive()
269 os_memcmp(hash, l2->last_hash_prev, SHA1_MAC_LEN) == 0) { in l2_packet_receive()
276 os_memcpy(l2->last_hash, hash, SHA1_MAC_LEN); in l2_packet_receive()
296 u8 hash[SHA1_MAC_LEN]; in l2_packet_receive_br() local
321 sha1_vector(1, addr, len, hash); in l2_packet_receive_br()
323 os_memcmp(hash, l2->last_hash, SHA1_MAC_LEN) == 0) { in l2_packet_receive_br()
328 os_memcmp(hash, l2->last_hash_prev, SHA1_MAC_LEN) == 0) { in l2_packet_receive_br()
335 os_memcpy(l2->last_hash, hash, SHA1_MAC_LE in l2_packet_receive_br()
[all...]
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Dalternative.c823 * and the kCFI hash value.
858 * Re-hash the CFI hash with a boot-time seed while making sure the result is
861 static u32 cfi_rehash(u32 hash) in cfi_rehash() argument
863 hash ^= cfi_seed; in cfi_rehash()
864 while (unlikely(is_endbr(hash) || is_endbr(-hash))) { in cfi_rehash()
865 bool lsb = hash & 1; in cfi_rehash()
866 hash >>= 1; in cfi_rehash()
868 hash in cfi_rehash()
1007 u32 hash; cfi_disable_callers() local
1030 u32 hash; cfi_enable_callers() local
1050 u32 hash; cfi_rand_preamble() local
1070 u32 hash; cfi_rewrite_preamble() local
1103 u32 hash; cfi_rand_callers() local
1122 u32 hash; cfi_rewrite_callers() local
[all...]
/third_party/ffmpeg/libavcodec/
H A Dg2meet.c119 ePICPixHash hash; member
377 /* improved djb2 hash from http://www.cse.yorku.ca/~oz/hash.html */
390 static void epic_hash_init(ePICPixHash *hash) in epic_hash_init() argument
392 memset(hash, 0, sizeof(*hash)); in epic_hash_init()
395 static ePICPixHashElem *epic_hash_find(const ePICPixHash *hash, uint32_t key) in epic_hash_find() argument
398 ePICPixHashElem *bucket = hash->bucket[idx]; in epic_hash_find()
400 for (i = 0; i < hash->bucket_fill[idx]; i++) in epic_hash_find()
407 static ePICPixHashElem *epic_hash_add(ePICPixHash *hash, uint32_ argument
430 epic_add_pixel_to_cache(ePICPixHash *hash, uint32_t key, uint32_t pix) epic_add_pixel_to_cache() argument
451 epic_cache_entries_for_pixel(const ePICPixHash *hash, uint32_t pix) epic_cache_entries_for_pixel() argument
462 epic_free_pixel_cache(ePICPixHash *hash) epic_free_pixel_cache() argument
[all...]
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/common/
H A Dmbedtls_ec_adapter.c215 static int32_t CalTmpParab(mbedtls_mpi *tmpX, const mbedtls_mpi *modP, const uint8_t *hash, uint32_t hashLen) in CalTmpParab() argument
236 status = mbedtls_mpi_read_binary(&tmpBnA, hash, hashLen); in CalTmpParab()
270 static int32_t Elligator(unsigned char *point, int pointLength, const unsigned char *hash, int hashLength) in Elligator() argument
295 status = CalTmpParab(&tmpBnB, &paraBnP, hash, hashLength); in Elligator()
447 static int32_t EcHashToPoint(const Blob *hash, Blob *point) in EcHashToPoint() argument
467 ret = Sha256(hash, &digestBlob); in EcHashToPoint()
482 LOG_AND_RETURN_IF_MBED_FAIL(ret, "Ec hash to point failed."); in EcHashToPoint()
487 int32_t MbedtlsHashToPoint(const Uint8Buff *hash, Uint8Buff *outEcPoint) in MbedtlsHashToPoint() argument
489 CHECK_PTR_RETURN_HAL_ERROR_CODE(hash, "hash"); in MbedtlsHashToPoint()
514 MbedtlsHashToPoint25519(const Uint8Buff *hash, Uint8Buff *outEcPoint) MbedtlsHashToPoint25519() argument
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/common/
H A Dvalue_proxy.cpp196 .hash = std::move(asset.hash), in Asset()
211 .hash = std::move(asset.hash), in Asset()
226 .hash = std::move(asset.hash), in Asset()
259 .hash = std::move(asset_.hash), in operator NativeRdb::AssetValue()
274 .hash = std::move(asset_.hash), in operator CommonType::AssetValue()
[all...]
/kernel/linux/linux-5.10/security/selinux/ss/
H A Davtab.c17 * Tuned number of hash slots for avtab to reduce memory usage
41 u32 hash = 0; in avtab_hash() local
48 hash ^= v; \ in avtab_hash()
49 hash = (hash << r2) | (hash >> (32 - r2)); \ in avtab_hash()
50 hash = hash * m + n; \ in avtab_hash()
59 hash ^= hash >> 1 in avtab_hash()
[all...]
/kernel/linux/linux-5.10/fs/ubifs/
H A Dtnc_commit.c29 u8 hash[UBIFS_HASH_ARR_SZ]; in make_idx_node() local
44 ubifs_copy_hash(c, zbr->hash, ubifs_branch_hash(c, br)); in make_idx_node()
55 ubifs_node_calc_hash(c, idx, hash); in make_idx_node()
72 ubifs_copy_hash(c, hash, zbr->hash); in make_idx_node()
77 ubifs_copy_hash(c, hash, c->zroot.hash); in make_idx_node()
858 u8 hash[UBIFS_HASH_ARR_SZ]; in write_index() local
877 ubifs_copy_hash(c, zbr->hash, ubifs_branch_hash(c, br)); in write_index()
889 ubifs_node_calc_hash(c, idx, hash); in write_index()
[all...]
/kernel/linux/linux-6.6/fs/ubifs/
H A Dtnc_commit.c29 u8 hash[UBIFS_HASH_ARR_SZ]; in make_idx_node() local
44 ubifs_copy_hash(c, zbr->hash, ubifs_branch_hash(c, br)); in make_idx_node()
55 ubifs_node_calc_hash(c, idx, hash); in make_idx_node()
72 ubifs_copy_hash(c, hash, zbr->hash); in make_idx_node()
77 ubifs_copy_hash(c, hash, c->zroot.hash); in make_idx_node()
858 u8 hash[UBIFS_HASH_ARR_SZ]; in write_index() local
877 ubifs_copy_hash(c, zbr->hash, ubifs_branch_hash(c, br)); in write_index()
889 ubifs_node_calc_hash(c, idx, hash); in write_index()
[all...]
/base/msdp/device_status/rust/modules/scheduler/test/src/
H A Dlib.rs174 fn hash(param: usize) -> usize in hash() functions
187 hash(param) in test_post_sync_task()
189 let expected = hash(param); in test_post_sync_task()
200 hash(param) in test_post_async_task()
203 let expected = hash(param); in test_post_async_task()
253 hash(param) in test_post_blocking_task()
256 let expected = hash(param); in test_post_blocking_task()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
H A Dclip_tbl.c80 int hash; in cxgb4_clip_get() local
86 hash = clip_addr_hash(ctbl, addr, v6); in cxgb4_clip_get()
89 list_for_each_entry(cte, &ctbl->hash_list[hash], list) { in cxgb4_clip_get()
114 list_add_tail(&ce->list, &ctbl->hash_list[hash]); in cxgb4_clip_get()
153 int hash; in cxgb4_clip_release() local
159 hash = clip_addr_hash(ctbl, addr, v6); in cxgb4_clip_release()
162 list_for_each_entry(cte, &ctbl->hash_list[hash], list) { in cxgb4_clip_release()
/kernel/linux/linux-5.10/include/net/
H A Dinet_hashtables.h29 #include <net/netns/hash.h>
107 * We must use different 'nulls' end-of-chain value for all hash buckets :
137 * TCP hash as well as the others for fast bind/connect.
167 inet_lhash2_bucket(struct inet_hashinfo *h, u32 hash) in inet_lhash2_bucket() argument
169 return &h->lhash2[hash & h->lhash2_mask]; in inet_lhash2_bucket()
174 unsigned int hash) in inet_ehash_bucket()
176 return &hashinfo->ehash[hash & hashinfo->ehash_mask]; in inet_ehash_bucket()
181 unsigned int hash) in inet_ehash_lockp()
183 return &hashinfo->ehash_locks[hash & hashinfo->ehash_locks_mask]; in inet_ehash_lockp()
307 /* Sockets in TCP_CLOSE state are _always_ taken out of the hash, s
172 inet_ehash_bucket( struct inet_hashinfo *hashinfo, unsigned int hash) inet_ehash_bucket() argument
179 inet_ehash_lockp( struct inet_hashinfo *hashinfo, unsigned int hash) inet_ehash_lockp() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/
H A Dclip_tbl.c80 int hash; in cxgb4_clip_get() local
86 hash = clip_addr_hash(ctbl, addr, v6); in cxgb4_clip_get()
89 list_for_each_entry(cte, &ctbl->hash_list[hash], list) { in cxgb4_clip_get()
113 list_add_tail(&ce->list, &ctbl->hash_list[hash]); in cxgb4_clip_get()
152 int hash; in cxgb4_clip_release() local
158 hash = clip_addr_hash(ctbl, addr, v6); in cxgb4_clip_release()
161 list_for_each_entry(cte, &ctbl->hash_list[hash], list) { in cxgb4_clip_release()
/kernel/linux/linux-6.6/fs/efivarfs/
H A Dsuper.c106 unsigned long hash = init_name_hash(dentry); in efivarfs_d_hash() local
114 hash = partial_name_hash(*s++, hash); in efivarfs_d_hash()
118 hash = partial_name_hash(tolower(*s++), hash); in efivarfs_d_hash()
120 qstr->hash = end_name_hash(hash); in efivarfs_d_hash()
/kernel/linux/linux-6.6/drivers/net/ethernet/mediatek/
H A Dmtk_ppe.h298 u16 hash; member
353 void __mtk_ppe_check_skb(struct mtk_ppe *ppe, struct sk_buff *skb, u16 hash);
356 mtk_ppe_check_skb(struct mtk_ppe *ppe, struct sk_buff *skb, u16 hash) in mtk_ppe_check_skb() argument
363 if (hash > MTK_PPE_HASH_MASK) in mtk_ppe_check_skb()
367 diff = now - ppe->foe_check_time[hash]; in mtk_ppe_check_skb()
371 ppe->foe_check_time[hash] = now; in mtk_ppe_check_skb()
372 __mtk_ppe_check_skb(ppe, skb, hash); in mtk_ppe_check_skb()
/third_party/mbedtls/include/mbedtls/
H A Dpk.h291 const unsigned char *hash, unsigned char *sig);
456 * PSA_ALG_RSA_PKCS1V15_SIGN(hash),
457 * PSA_ALG_RSA_PSS(hash),
459 * PSA_ALG_ECDSA(hash),
460 * PSA_ALG_ECDH, where hash is a specific hash.
565 * corresponding to the PSA algorithm \c hash:
568 * #PSA_ALG_RSA_OAEP(\c hash)
719 * does not rely on a hash algorithm (non-deterministic
722 * \p hash i
[all...]
/third_party/mesa3d/src/compiler/nir/
H A Dnir_lower_locals_to_regs.c34 /* A hash table mapping derefs to registers */
40 /* The following two functions implement a hash and equality check for
41 * variable dreferences. When the hash or equality function encounters an
48 uint32_t hash = 0; in hash_deref() local
54 return XXH32(&deref->var, sizeof(deref->var), hash); in hash_deref()
60 hash = XXH32(&deref->strct.index, sizeof(deref->strct.index), hash); in hash_deref()
102 uint32_t hash = hash_deref(deref); in get_reg_for_deref() local
108 _mesa_hash_table_search_pre_hashed(state->regs_table, hash, deref); in get_reg_for_deref()
125 _mesa_hash_table_insert_pre_hashed(state->regs_table, hash, dere in get_reg_for_deref()
[all...]
/third_party/node/lib/internal/crypto/
H A Dutil.js156 // These are the only hash algorithms we currently support via
260 RsaHashedKeyGenParams: { hash: 'HashAlgorithmIdentifier' },
262 HmacKeyGenParams: { hash: 'HashAlgorithmIdentifier' },
264 EcdsaParams: { hash: 'HashAlgorithmIdentifier' },
265 HmacImportParams: { hash: 'HashAlgorithmIdentifier' },
267 hash: 'HashAlgorithmIdentifier',
272 Pbkdf2Params: { hash: 'HashAlgorithmIdentifier', salt: 'BufferSource' },
274 RsaHashedImportParams: { hash: 'HashAlgorithmIdentifier' },
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
H A DRenderPassCache.cpp238 size_t hash = Hash(query.colorMask); in operator ()() local
240 HashCombine(&hash, Hash(query.resolveTargetMask)); in operator ()()
243 HashCombine(&hash, query.colorFormats[i], query.colorLoadOp[i]); in operator ()()
246 HashCombine(&hash, query.hasDepthStencil); in operator ()()
248 HashCombine(&hash, query.depthStencilFormat, query.depthLoadOp, query.stencilLoadOp, in operator ()()
252 HashCombine(&hash, query.sampleCount); in operator ()()
254 return hash; in operator ()()
/third_party/python/Lib/test/
H A Dtest_numeric_tower.py12 # Constants related to the hash implementation; hash(x) is based
41 self.assertEqual(hash(x), hash(y),
50 # check that equal values hash equal
58 # the current hash is based on reduction modulo 2**n-1 for some
88 # check that floats hash equal to corresponding Fractions and Decimals
90 # floats that are distinct but numerically equal should hash the same
109 # complex numbers with zero imaginary part should hash equal to
121 # but equal values give the same hash
[all...]
/third_party/rust/crates/rustix/src/backend/linux_raw/
H A Dvdso.rs132 let mut hash: *const u32 = null(); in init_from_sysinfo_ehdr() variables
154 hash = in init_from_sysinfo_ehdr()
176 // The upstream code checks `symstrings`, `symtab`, and `hash` for null; in init_from_sysinfo_ehdr()
183 // Parse the hash table header. in init_from_sysinfo_ehdr()
184 vdso.nbucket = *hash.add(0); in init_from_sysinfo_ehdr()
185 //vdso.nchain = *hash.add(1); in init_from_sysinfo_ehdr()
186 vdso.bucket = hash.add(2); in init_from_sysinfo_ehdr()
187 vdso.chain = hash.add(vdso.nbucket as usize + 2); in init_from_sysinfo_ehdr()
209 unsafe fn match_version(&self, mut ver: u16, name: &CStr, hash: u32) -> bool { in match_version()
211 // ver matches name (which hashes to hash) in match_version()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
H A Drandom.c108 u8 hash[SHA1_MAC_LEN]; in random_extract() local
112 /* First, add hash back to pool to make backtracking more difficult. */ in random_extract()
114 sizeof(pool), hash); in random_extract()
115 random_mix_pool(hash, sizeof(hash)); in random_extract()
120 sizeof(buf), hash); in random_extract()
122 * Fold the hash to further reduce any potential output pattern. in random_extract()
126 hash_ptr = (u32 *) hash; in random_extract()
128 os_memcpy(out, hash, EXTRACT_LEN); in random_extract()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/
H A Dtlsv1_record.c44 if (suite->hash == TLS_HASH_MD5) { in tlsv1_record_set_cipher_suite()
47 } else if (suite->hash == TLS_HASH_SHA) { in tlsv1_record_set_cipher_suite()
50 } else if (suite->hash == TLS_HASH_SHA256) { in tlsv1_record_set_cipher_suite()
285 u8 len[2], hash[100]; in tlsv1_record_receive() local
429 "hash value"); in tlsv1_record_receive()
451 hlen = sizeof(hash); in tlsv1_record_receive()
452 if (crypto_hash_finish(hmac, hash, &hlen) < 0) { in tlsv1_record_receive()
459 os_memcmp_const(hash, out_data + plen, hlen) != 0 || in tlsv1_record_receive()
/third_party/vk-gl-cts/framework/delibs/depool/
H A DdePoolMultiSet.h69 TYPENAME##Hash* hash; \
83 int* countPtr = TYPENAME##Hash_find(set->hash, key); \
136 set->hash = TYPENAME##Hash_create(pool); \
143 TYPENAME##Hash_reset(set->hash); \
149 int* countPtr = TYPENAME##Hash_find(set->hash, key); \
157 TYPENAME##Hash_delete(set->hash, key); \
161 return TYPENAME##Hash_insert(set->hash, key, newCount); \
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
H A Drandom.c108 u8 hash[SHA1_MAC_LEN]; in random_extract() local
112 /* First, add hash back to pool to make backtracking more difficult. */ in random_extract()
114 sizeof(pool), hash); in random_extract()
115 random_mix_pool(hash, sizeof(hash)); in random_extract()
120 sizeof(buf), hash); in random_extract()
122 * Fold the hash to further reduce any potential output pattern. in random_extract()
126 hash_ptr = (u32 *) hash; in random_extract()
128 os_memcpy(out, hash, EXTRACT_LEN); in random_extract()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/
H A Dtlsv1_record.c44 if (suite->hash == TLS_HASH_MD5) { in tlsv1_record_set_cipher_suite()
47 } else if (suite->hash == TLS_HASH_SHA) { in tlsv1_record_set_cipher_suite()
50 } else if (suite->hash == TLS_HASH_SHA256) { in tlsv1_record_set_cipher_suite()
285 u8 len[2], hash[100]; in tlsv1_record_receive() local
429 "hash value"); in tlsv1_record_receive()
451 hlen = sizeof(hash); in tlsv1_record_receive()
452 if (crypto_hash_finish(hmac, hash, &hlen) < 0) { in tlsv1_record_receive()
459 os_memcmp_const(hash, out_data + plen, hlen) != 0 || in tlsv1_record_receive()

Completed in 19 milliseconds

1...<<31323334353637383940>>...173