Home
last modified time | relevance | path

Searched refs:hash (Results 1151 - 1175 of 4274) sorted by relevance

1...<<41424344454647484950>>...171

/base/hiviewdfx/hitrace/test/unittest/common/native/
H A Dhitracechaincpp_test.cpp47 uint64_t hash = 0; in HashFunc() local
51 hash = (hash * seed) + (*p++); in HashFunc()
53 return hash; in HashFunc()
66 uint64_t hash = HashFunc(hashData, HASH_DATA_LENGTH * sizeof(uint64_t)); in GenerateChainId() local
67 return hash; in GenerateChainId()
81 uint64_t hash = HashFunc(hashData, HASH_DATA_LENGTH * sizeof(uint64_t)); in GenerateSpanId() local
82 return hash; in GenerateSpanId()
95 uint64_t hash = HashFunc(hashData, HASH_DATA_LENGTH * sizeof(uint64_t)); in GenerateParentSpanId() local
96 return hash; in GenerateParentSpanId()
[all...]
/kernel/linux/linux-5.10/fs/cifs/
H A Dsmb2transport.c224 struct crypto_shash *hash; in smb2_calc_signature() local
238 rc = cifs_alloc_hash("hmac(sha256)", &hash, &sdesc); in smb2_calc_signature()
246 hash = server->secmech.hmacsha256; in smb2_calc_signature()
250 rc = crypto_shash_setkey(hash, ses->auth_key.response, in smb2_calc_signature()
292 cifs_free_hash(&hash, &sdesc); in smb2_calc_signature()
374 cifs_server_dbg(VFS, "%s: Could not generate sha256 hash\n", __func__); in generate_key()
541 struct crypto_shash *hash; in smb3_calc_signature() local
551 rc = cifs_alloc_hash("cmac(aes)", &hash, &sdesc); in smb3_calc_signature()
557 hash = server->secmech.cmacaes; in smb3_calc_signature()
564 rc = crypto_shash_setkey(hash, ke in smb3_calc_signature()
[all...]
/third_party/libcoap/src/
H A Dcoap_ws.c40 /* Have SHA1 hash support */ in coap_ws_is_supported()
392 coap_ws_build_key_hash(coap_session_t *session, char *hash, size_t max_hash_len) { in coap_ws_build_key_hash() argument
411 hash, max_hash_len)) { in coap_ws_build_key_hash()
461 char hash[30]; in coap_ws_rd_http_header_client() local
467 if (!coap_ws_build_key_hash(session, hash, sizeof(hash))) { in coap_ws_rd_http_header_client()
470 if (strcmp(hash, value) != 0) { in coap_ws_rd_http_header_client()
613 char hash[30]; in coap_ws_read() local
615 if (!coap_ws_build_key_hash(session, hash, sizeof(hash))) { in coap_ws_read()
[all...]
/kernel/linux/linux-6.6/fs/ext4/
H A Dnamei.c236 __le32 hash; member
242 * dirent the two low bits of the hash version will be zero. Therefore, the
243 * hash version mod 4 should never be 0. Sincerely, the paranoia department.
280 u32 hash; member
318 u32 hash, ext4_lblk_t block);
319 static int ext4_htree_next_block(struct inode *dir, __u32 hash,
580 return le32_to_cpu(entry->hash); in dx_get_hash()
585 entry->hash = cpu_to_le32(value); in dx_set_hash()
682 name, h.hash, in dx_show_leaf()
712 h.hash in dx_show_leaf()
752 ext4_lblk_t hash = i ? dx_get_hash(entries): 0; dx_show_entries() local
778 htree_rep_invariant_check(struct dx_entry *at, struct dx_entry *target, u32 hash, unsigned int n) htree_rep_invariant_check() argument
792 htree_rep_invariant_check(struct dx_entry *at, struct dx_entry *target, u32 hash, unsigned int n) htree_rep_invariant_check() argument
817 u32 hash; dx_probe() local
1006 ext4_htree_next_block(struct inode *dir, __u32 hash, struct dx_frame *frame, struct dx_frame *frames, __u32 *start_hash) ext4_htree_next_block() argument
1378 dx_insert_block(struct dx_frame *frame, u32 hash, ext4_lblk_t block) dx_insert_block() argument
[all...]
/kernel/linux/linux-5.10/arch/powerpc/kvm/
H A Dbook3s_32_mmu.c98 u32 page, hash, pteg, htabmask; in kvmppc_mmu_book3s_32_get_pteg() local
104 hash = ((sr_vsid(sre) ^ page) << 6); in kvmppc_mmu_book3s_32_get_pteg()
106 hash = ~hash; in kvmppc_mmu_book3s_32_get_pteg()
107 hash &= htabmask; in kvmppc_mmu_book3s_32_get_pteg()
109 pteg = (vcpu_book3s->sdr1 & 0xffff0000) | hash; in kvmppc_mmu_book3s_32_get_pteg()
/kernel/linux/linux-5.10/crypto/
H A Dcrypto_user_stat.c140 rhash.stat_hash_cnt = atomic64_read(&alg->stats.hash.hash_cnt); in crypto_report_ahash()
141 rhash.stat_hash_tlen = atomic64_read(&alg->stats.hash.hash_tlen); in crypto_report_ahash()
142 rhash.stat_err_cnt = atomic64_read(&alg->stats.hash.err_cnt); in crypto_report_ahash()
155 rhash.stat_hash_cnt = atomic64_read(&alg->stats.hash.hash_cnt); in crypto_report_shash()
156 rhash.stat_hash_tlen = atomic64_read(&alg->stats.hash.hash_tlen); in crypto_report_shash()
157 rhash.stat_err_cnt = atomic64_read(&alg->stats.hash.err_cnt); in crypto_report_shash()
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun4i-ss/
H A Dsun4i-ss-core.c37 .alg.hash = {
64 .alg.hash = {
441 err = crypto_register_ahash(&ss_algs[i].alg.hash); in sun4i_ss_probe()
444 ss_algs[i].alg.hash.halg.base.cra_name); in sun4i_ss_probe()
466 crypto_unregister_ahash(&ss_algs[i].alg.hash); in sun4i_ss_probe()
489 crypto_unregister_ahash(&ss_algs[i].alg.hash); in sun4i_ss_remove()
/kernel/linux/linux-6.6/arch/powerpc/kvm/
H A Dbook3s_32_mmu.c98 u32 page, hash, pteg, htabmask; in kvmppc_mmu_book3s_32_get_pteg() local
104 hash = ((sr_vsid(sre) ^ page) << 6); in kvmppc_mmu_book3s_32_get_pteg()
106 hash = ~hash; in kvmppc_mmu_book3s_32_get_pteg()
107 hash &= htabmask; in kvmppc_mmu_book3s_32_get_pteg()
109 pteg = (vcpu_book3s->sdr1 & 0xffff0000) | hash; in kvmppc_mmu_book3s_32_get_pteg()
/kernel/linux/linux-5.10/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_encap.c100 * Using a simple hash table for mac table implementation with the last octet
194 * - Allocate a new mac (hash) table.
449 u32 hash = skb_get_hash(skb); in opa_vnic_calc_entropy() local
452 hash ^= hash >> 8; in opa_vnic_calc_entropy()
453 hash ^= hash >> 16; in opa_vnic_calc_entropy()
456 return (u8)(hash & 0xFF); in opa_vnic_calc_entropy()
/kernel/linux/linux-5.10/drivers/net/ethernet/sun/
H A Dsunvnet.c207 unsigned int hash = vnet_hashfn(skb->data); in __tx_port_find() local
208 struct hlist_head *hp = &vp->port_hash[hash]; in __tx_port_find()
211 hlist_for_each_entry_rcu(port, hp, hash) { in __tx_port_find()
474 INIT_HLIST_NODE(&port->hash); in vnet_port_probe()
489 hlist_add_head_rcu(&port->hash, in vnet_port_probe()
526 hlist_del_rcu(&port->hash); in vnet_port_remove()
/kernel/linux/linux-5.10/fs/nfsd/
H A Dnfscache.c18 #include <linux/hash.h>
26 * We use this value to determine the number of hash buckets from the max
78 * Compute the number of hash buckets we need. Divide the max cachesize by
335 * Search the request hash for an entry that matches the given rqstp.
367 /* tally hash chain length stats */ in nfsd_cache_insert()
403 u32 hash = nfsd_cache_hash(xid, nn); in nfsd_cache_lookup() local
404 struct nfsd_drc_bucket *b = &nn->drc_hashtbl[hash]; in nfsd_cache_lookup()
509 u32 hash; in nfsd_cache_update() local
517 hash = nfsd_cache_hash(rp->c_key.k_xid, nn); in nfsd_cache_update()
518 b = &nn->drc_hashtbl[hash]; in nfsd_cache_update()
[all...]
/kernel/linux/linux-5.10/fs/adfs/
H A Ddir.c398 unsigned long hash; in adfs_hash() local
406 hash = init_name_hash(parent); in adfs_hash()
408 hash = partial_name_hash(adfs_tolower(*name++), hash); in adfs_hash()
409 qstr->hash = end_name_hash(hash); in adfs_hash()
/kernel/linux/linux-5.10/mm/
H A Duserfaultfd.c223 u32 hash; in __mcopy_atomic_hugetlb() local
291 hash = hugetlb_fault_mutex_hash(mapping, idx); in __mcopy_atomic_hugetlb()
292 mutex_lock(&hugetlb_fault_mutex_table[hash]); in __mcopy_atomic_hugetlb()
297 mutex_unlock(&hugetlb_fault_mutex_table[hash]); in __mcopy_atomic_hugetlb()
305 mutex_unlock(&hugetlb_fault_mutex_table[hash]); in __mcopy_atomic_hugetlb()
313 mutex_unlock(&hugetlb_fault_mutex_table[hash]); in __mcopy_atomic_hugetlb()
/kernel/linux/linux-6.6/fs/adfs/
H A Ddir.c398 unsigned long hash; in adfs_hash() local
406 hash = init_name_hash(parent); in adfs_hash()
408 hash = partial_name_hash(adfs_tolower(*name++), hash); in adfs_hash()
409 qstr->hash = end_name_hash(hash); in adfs_hash()
/kernel/linux/linux-6.6/drivers/net/ethernet/sun/
H A Dsunvnet.c207 unsigned int hash = vnet_hashfn(skb->data); in __tx_port_find() local
208 struct hlist_head *hp = &vp->port_hash[hash]; in __tx_port_find()
211 hlist_for_each_entry_rcu(port, hp, hash) { in __tx_port_find()
475 INIT_HLIST_NODE(&port->hash); in vnet_port_probe()
490 hlist_add_head_rcu(&port->hash, in vnet_port_probe()
527 hlist_del_rcu(&port->hash); in vnet_port_remove()
/kernel/linux/linux-6.6/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_encap.c100 * Using a simple hash table for mac table implementation with the last octet
194 * - Allocate a new mac (hash) table.
449 u32 hash = skb_get_hash(skb); in opa_vnic_calc_entropy() local
452 hash ^= hash >> 8; in opa_vnic_calc_entropy()
453 hash ^= hash >> 16; in opa_vnic_calc_entropy()
456 return (u8)(hash & 0xFF); in opa_vnic_calc_entropy()
/kernel/linux/linux-6.6/net/openvswitch/
H A Dvport.c57 unsigned int hash = jhash(name, strlen(name), (unsigned long) net); in hash_bucket() local
58 return &dev_table[hash & (VPORT_HASH_BUCKETS - 1)]; in hash_bucket()
471 u32 hash; in ovs_vport_find_upcall_portid() local
479 hash = skb_get_hash(skb); in ovs_vport_find_upcall_portid()
480 ids_index = hash - ids->n_ids * reciprocal_divide(hash, ids->rn_ids); in ovs_vport_find_upcall_portid()
/kernel/linux/linux-6.6/net/core/
H A Dnet-procfs.c248 int hash; in ptype_seq_next() local
276 hash = 0; in ptype_seq_next()
279 hash = ntohs(pt->type) & PTYPE_HASH_MASK; in ptype_seq_next()
281 while (nxt == &ptype_base[hash]) { in ptype_seq_next()
282 if (++hash >= PTYPE_HASH_SIZE) in ptype_seq_next()
284 nxt = ptype_base[hash].next; in ptype_seq_next()
/third_party/elfio/elfio/
H A Delfio_symbols.hpp352 uint32_t hash = elf_gnu_hash( (const unsigned char*)name.c_str() ); in gnu_hash_lookup() local
353 uint32_t bloom_index = ( hash / ( 8 * sizeof( T ) ) ) % bloom_size; in gnu_hash_lookup()
355 ( (T)1 << ( hash % ( 8 * sizeof( T ) ) ) ) | in gnu_hash_lookup()
356 ( (T)1 << ( ( hash >> bloom_shift ) % ( 8 * sizeof( T ) ) ) ); in gnu_hash_lookup()
362 uint32_t bucket = hash % nbuckets; in gnu_hash_lookup()
377 if ( ( chain_hash >> 1 ) == ( hash >> 1 ) && in gnu_hash_lookup()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DTrie2.java320 int hash = initHash(); in hashCode()
322 hash = hashInt(hash, r.hashCode()); in hashCode()
324 if (hash == 0) { in hashCode()
325 hash = 1; in hashCode()
327 fHash = hash; in hashCode()
689 // the same hash on a frozen Trie2, no damage is done.
1026 // Hashing implementation functions. FNV hash. Respected public domain algorithm.
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DTrie2.java322 int hash = initHash(); in hashCode()
324 hash = hashInt(hash, r.hashCode()); in hashCode()
326 if (hash == 0) { in hashCode()
327 hash = 1; in hashCode()
329 fHash = hash; in hashCode()
695 // the same hash on a frozen Trie2, no damage is done.
1032 // Hashing implementation functions. FNV hash. Respected public domain algorithm.
/third_party/mbedtls/library/
H A Dpsa_crypto_driver_wrappers.h101 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
107 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
120 const uint8_t *hash, size_t hash_length);
134 const uint8_t *hash, size_t hash_length,
254 uint8_t *hash,
273 uint8_t *hash,
H A Dpsa_crypto_rsa.c286 /* Decode the hash algorithm from alg and store the mbedtls encoding in
287 * md_alg. Verify that the hash length is acceptable. */
295 /* The Mbed TLS RSA module uses an unsigned int for hash length in psa_rsa_decode_md_type()
304 /* For signatures using a hash, the hash length must be correct. */ in psa_rsa_decode_md_type()
320 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, in mbedtls_psa_rsa_sign_hash()
356 hash, in mbedtls_psa_rsa_sign_hash()
371 hash, in mbedtls_psa_rsa_sign_hash()
402 * up to the hash length. */ in rsa_pss_expected_salt_len()
419 psa_algorithm_t alg, const uint8_t *hash, size_ in mbedtls_psa_rsa_verify_hash()
317 mbedtls_psa_rsa_sign_hash( const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, uint8_t *signature, size_t signature_size, size_t *signature_length) mbedtls_psa_rsa_sign_hash() argument
416 mbedtls_psa_rsa_verify_hash( const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, const uint8_t *signature, size_t signature_length) mbedtls_psa_rsa_verify_hash() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
H A Dsfn_nir_vectorize_vs_inputs.c226 #define HASH(hash, data) XXH32(&(data), sizeof(data), (hash))
237 uint32_t hash = 0; in r600_hash_instr() local
239 hash = HASH(hash, var->type); in r600_hash_instr()
240 return HASH(hash, var->data.location); in r600_hash_instr()
296 * of the hash set interfaces. The hash set assumes that we're only in r600_vec_instr_set_remove()
/third_party/node/deps/v8/src/compiler/
H A Dstate-values-utils.cc110 size_t hash = count; in StateValuesHashKey() local
112 hash = hash * 23 + (nodes[i] == nullptr ? 0 : nodes[i]->id()); in StateValuesHashKey()
114 return static_cast<int>(hash & 0x7FFFFFFF); in StateValuesHashKey()
122 int hash = StateValuesHashKey(nodes, count); in GetValuesNodeFromCache() local
123 ZoneHashMap::Entry* lookup = hash_map_.LookupOrInsert(&key, hash); in GetValuesNodeFromCache()

Completed in 24 milliseconds

1...<<41424344454647484950>>...171