/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
H A D | CaseInsensitiveString.java | 24 private int hash = 0; field in CaseInsensitiveString 83 if (hash == 0) { in hashCode() 84 hash = folded.hashCode(); in hashCode() 87 return hash; in hashCode()
|
/third_party/node/test/fixtures/wpt/WebCryptoAPI/sign_verify/ |
H A D | rsa_pkcs_vectors.js | 45 hash: "SHA-1", 58 hash: "SHA-256", 71 hash: "SHA-384", 84 hash: "SHA-512",
|
/third_party/node/benchmark/policy/ |
H A D | policy-startup.js | 17 const hash = (str, algo) => { 18 const hash = require('crypto').createHash(algo); 19 return hash.update(str).digest('base64'); 25 integrity: `sha256-${hash(`// ./_${i}`, 'sha256')}`,
|
/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/ |
H A D | UnittestIssues.cs | 156 int hash = 1; in GetHashCode() 158 hash ^= _unknownFields.GetHashCode(); in GetHashCode() 160 return hash; in GetHashCode() 294 int hash = 1; in GetHashCode() 296 hash ^= _unknownFields.GetHashCode(); in GetHashCode() 298 return hash; in GetHashCode() 432 int hash = 1; in GetHashCode() 434 hash ^= _unknownFields.GetHashCode(); in GetHashCode() 436 return hash; in GetHashCode() 615 int hash in GetHashCode() [all...] |
H A D | UnittestCustomOptionsProto3.cs | 365 int hash = 1; in GetHashCode() 366 if (Field1.Length != 0) hash ^= Field1.GetHashCode(); in GetHashCode() 367 if (anOneofCase_ == AnOneofOneofCase.OneofField) hash ^= OneofField.GetHashCode(); in GetHashCode() 368 hash ^= (int) anOneofCase_; in GetHashCode() 370 hash ^= _unknownFields.GetHashCode(); in GetHashCode() 372 return hash; in GetHashCode() 568 int hash = 1; in GetHashCode() 570 hash ^= _unknownFields.GetHashCode(); in GetHashCode() 572 return hash; in GetHashCode() 704 int hash in GetHashCode() [all...] |
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nf_conntrack_core.c | 52 #include <net/netns/hash.h> 80 /* serialize hash resizes and nf_ct_iterate_cleanup */ 138 /* return true if we need to recompute hashes (in case hash table was resized) */ 228 static u32 scale_hash(u32 hash) in scale_hash() argument 230 return reciprocal_scale(hash, nf_conntrack_htable_size); in scale_hash() 476 * intentionally doesn't re-use any of the seeds used for hash 605 unsigned int hash, reply_hash; in __nf_ct_delete_from_lists() local 610 hash = hash_conntrack(net, in __nf_ct_delete_from_lists() 616 } while (nf_conntrack_double_lock(net, hash, reply_hash, sequence)); in __nf_ct_delete_from_lists() 619 nf_conntrack_double_unlock(hash, reply_has in __nf_ct_delete_from_lists() 735 ____nf_conntrack_find(struct net *net, const struct nf_conntrack_zone *zone, const struct nf_conntrack_tuple *tuple, u32 hash) ____nf_conntrack_find() argument 774 __nf_conntrack_find_get(struct net *net, const struct nf_conntrack_zone *zone, const struct nf_conntrack_tuple *tuple, u32 hash) __nf_conntrack_find_get() argument 829 __nf_conntrack_hash_insert(struct nf_conn *ct, unsigned int hash, unsigned int reply_hash) __nf_conntrack_hash_insert() argument 871 unsigned int hash, reply_hash; nf_conntrack_hash_check_insert() local 1155 unsigned int hash, reply_hash; __nf_conntrack_confirm() local 1300 unsigned int hash, hsize; nf_conntrack_tuple_taken() local 1406 early_drop(struct net *net, unsigned int hash) early_drop() argument 1606 __nf_conntrack_alloc(struct net *net, const struct nf_conntrack_zone *zone, const struct nf_conntrack_tuple *orig, const struct nf_conntrack_tuple *repl, gfp_t gfp, u32 hash) __nf_conntrack_alloc() argument 1703 init_conntrack(struct net *net, struct nf_conn *tmpl, const struct nf_conntrack_tuple *tuple, struct sk_buff *skb, unsigned int dataoff, u32 hash) init_conntrack() argument 1819 u32 hash, zone_id, rid; resolve_normal_ct() local 2321 const struct nf_conntrack_tuple_hash *hash; nf_conntrack_get_tuple_skb() local 2568 struct hlist_nulls_head *hash; nf_ct_alloc_hashtable() local 2591 struct hlist_nulls_head *hash, *old_hash; nf_conntrack_hash_resize() local [all...] |
/kernel/linux/linux-6.6/crypto/ |
H A D | jitterentropy-kcapi.c | 40 #include <crypto/hash.h> 142 * Insert the time stamp into the hash context representing the pool. in jent_hash_time() 215 struct crypto_shash *hash; in jent_kcapi_init() local 225 * Jitter RNG's unpredictable behavior. If we have a slower hash in jent_kcapi_init() 230 hash = crypto_alloc_shash(JENT_CONDITIONING_HASH, 0, 0); in jent_kcapi_init() 231 if (IS_ERR(hash)) { in jent_kcapi_init() 233 return PTR_ERR(hash); in jent_kcapi_init() 235 rng->tfm = hash; in jent_kcapi_init() 237 size = sizeof(struct shash_desc) + crypto_shash_descsize(hash); in jent_kcapi_init() 244 sdesc->tfm = hash; in jent_kcapi_init() [all...] |
/third_party/mbedtls/include/mbedtls/ |
H A D | rsa.h | 132 * \note This function initializes the padding and the hash 158 * \note The hash selected in \p hash_id is always used for OEAP 166 * \param hash_id The hash identifier for PSS or OAEP, if \p padding is 190 * \brief This function retrieves hash identifier of mbedtls_md_type_t 836 * \param md_alg The message-digest algorithm used to hash the original data. 840 * output length of the corresponding hash algorithm. 841 * \param hash The buffer holding the message digest or raw data. 856 const unsigned char *hash, 868 * \param md_alg The message-digest algorithm used to hash the original data. 872 * output length of the corresponding hash algorith [all...] |
/kernel/linux/linux-5.10/arch/x86/boot/compressed/ |
H A D | kaslr.c | 49 static unsigned long rotate_xor(unsigned long hash, const void *area, in rotate_xor() argument 55 for (i = 0; i < size / sizeof(hash); i++) { in rotate_xor() 57 hash = (hash << ((sizeof(hash) * 8) - 7)) | (hash >> 7); in rotate_xor() 58 hash ^= ptr[i]; in rotate_xor() 61 return hash; in rotate_xor() 67 unsigned long hash = 0; in get_boot_seed() local 69 hash in get_boot_seed() [all...] |
/kernel/linux/linux-6.6/arch/x86/boot/compressed/ |
H A D | kaslr.c | 45 static unsigned long rotate_xor(unsigned long hash, const void *area, in rotate_xor() argument 51 for (i = 0; i < size / sizeof(hash); i++) { in rotate_xor() 53 hash = (hash << ((sizeof(hash) * 8) - 7)) | (hash >> 7); in rotate_xor() 54 hash ^= ptr[i]; in rotate_xor() 57 return hash; in rotate_xor() 63 unsigned long hash = 0; in get_boot_seed() local 65 hash in get_boot_seed() [all...] |
/kernel/linux/linux-5.10/drivers/target/tcm_fc/ |
H A D | tfc_sess.c | 18 #include <linux/hash.h> 70 INIT_HLIST_HEAD(&tport->hash[i]); in ft_tport_get() 155 * Sessions and hash lists are RCU-protected. 172 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_get() 173 hlist_for_each_entry_rcu(sess, head, hash) { in ft_sess_get() 194 struct hlist_head *head = &tport->hash[ft_sess_hash(sess->port_id)]; in ft_sess_alloc_cb() 197 hlist_add_head_rcu(&sess->hash, head); in ft_sess_alloc_cb() 204 * Allocate session and enter it in the hash for the local port. 217 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_create() 218 hlist_for_each_entry_rcu(sess, head, hash) in ft_sess_create() [all...] |
/kernel/linux/linux-6.6/drivers/target/tcm_fc/ |
H A D | tfc_sess.c | 18 #include <linux/hash.h> 70 INIT_HLIST_HEAD(&tport->hash[i]); in ft_tport_get() 155 * Sessions and hash lists are RCU-protected. 172 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_get() 173 hlist_for_each_entry_rcu(sess, head, hash) { in ft_sess_get() 194 struct hlist_head *head = &tport->hash[ft_sess_hash(sess->port_id)]; in ft_sess_alloc_cb() 197 hlist_add_head_rcu(&sess->hash, head); in ft_sess_alloc_cb() 204 * Allocate session and enter it in the hash for the local port. 217 head = &tport->hash[ft_sess_hash(port_id)]; in ft_sess_create() 218 hlist_for_each_entry_rcu(sess, head, hash) in ft_sess_create() [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_opt_vectorize.c | 40 #define HASH(hash, data) XXH32(&data, sizeof(data), hash) 43 hash_src(uint32_t hash, const nir_src *src) in hash_src() argument 48 return HASH(hash, hash_data); in hash_src() 52 hash_alu_src(uint32_t hash, const nir_alu_src *src, in hash_alu_src() argument 57 /* hash whether a swizzle accesses elements beyond the maximum in hash_alu_src() 63 hash = HASH(hash, swizzle); in hash_alu_src() 65 return hash_src(hash, &src->src); in hash_alu_src() 75 uint32_t hash in hash_instr() local [all...] |
/third_party/node/deps/v8/src/objects/ |
H A D | hash-table.h | 27 // HashTable is a subclass of FixedArray that implements a hash table 38 // The hash table class is parameterized with a Shape. 44 // // Returns the hash value for key. 46 // // Returns the hash value for object. 72 // Returns the number of elements in the hash table. 75 // Returns the number of deleted elements in the hash table. 78 // Returns the capacity of the hash table. 84 // hash table. 88 // a hash table. 101 // Minimum capacity for newly created hash table 112 FirstProbe(uint32_t hash, uint32_t size) FirstProbe() argument 294 HashTableKey(uint32_t hash) HashTableKey() argument 305 set_hash(uint32_t hash) set_hash() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
H A D | freedreno_batch_cache.c | 106 uint32_t hash = 0; in fd_batch_key_hash() local 107 hash = XXH32(key, offsetof(struct fd_batch_key, surf[0]), hash); in fd_batch_key_hash() 108 hash = XXH32(key->surf, sizeof(key->surf[0]) * key->num_surfs, hash); in fd_batch_key_hash() 109 return hash; in fd_batch_key_hash() 304 _mesa_hash_table_search_pre_hashed(cache->ht, batch->hash, key); in fd_bc_invalidate_batch() 318 struct set_entry *entry = _mesa_set_search_pre_hashed(batch->resources, rsc->hash, rsc); in fd_bc_invalidate_resource() 437 uint32_t hash = fd_batch_key_hash(key); variable 439 _mesa_hash_table_search_pre_hashed(cache->ht, hash, ke [all...] |
/third_party/node/deps/openssl/openssl/apps/ |
H A D | rehash.c | 81 unsigned int hash; member 120 static int add_entry(enum Type type, unsigned int hash, const char *filename, in add_entry() argument 128 unsigned int ndx = (type + hash) % OSSL_NELEM(hash_table); in add_entry() 131 if (bp->type == type && bp->hash == hash) in add_entry() 134 bp = app_malloc(sizeof(*bp), "hash bucket"); in add_entry() 138 bp->hash = hash; in add_entry() 160 "%s: error: hash table overflow for %s\n", in add_entry() 197 unsigned int hash in handle_symlink() local [all...] |
/third_party/openssl/apps/ |
H A D | rehash.c | 84 unsigned int hash; member 123 static int add_entry(enum Type type, unsigned int hash, const char *filename, in add_entry() argument 131 unsigned int ndx = (type + hash) % OSSL_NELEM(hash_table); in add_entry() 134 if (bp->type == type && bp->hash == hash) in add_entry() 137 bp = app_malloc(sizeof(*bp), "hash bucket"); in add_entry() 141 bp->hash = hash; in add_entry() 163 "%s: error: hash table overflow for %s\n", in add_entry() 200 unsigned int hash in handle_symlink() local [all...] |
/third_party/skia/third_party/externals/freetype/src/cache/ |
H A D | ftcbasic.c | 298 FT_Offset hash; in FT_EXPORT_DEF() local 334 hash = FTC_BASIC_ATTR_HASH( &query.attrs ) + gindex; in FT_EXPORT_DEF() 340 hash, gindex, in FT_EXPORT_DEF() 346 hash, gindex, in FT_EXPORT_DEF() 379 FT_Offset hash; in FT_EXPORT_DEF() local 409 hash = FTC_BASIC_ATTR_HASH( &query.attrs ) + gindex; in FT_EXPORT_DEF() 414 hash, gindex, in FT_EXPORT_DEF() 498 FT_Offset hash; in FT_EXPORT_DEF() local 532 /* beware, the hash must be the same for all glyph ranges! */ in FT_EXPORT_DEF() 533 hash in FT_EXPORT_DEF() 581 FT_Offset hash; FT_EXPORT_DEF() local [all...] |
/kernel/linux/linux-6.6/arch/powerpc/mm/book3s64/ |
H A D | hash_64k.c | 47 unsigned long vpn, hash, slot, gslot; in __hash_page_4K() local 98 * Check if the pte was already inserted into the hash table in __hash_page_4K() 105 * On hash insert failure we use old pte value and we don't in __hash_page_4K() 157 hash = hpt_hash(vpn, shift, ssize); in __hash_page_4K() 159 hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP; in __hash_page_4K() 161 /* Insert into the hash table, primary slot */ in __hash_page_4K() 170 hpte_group = (~hash & htab_hash_mask) * HPTES_PER_GROUP; in __hash_page_4K() 198 hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP; in __hash_page_4K() 236 unsigned long vpn, hash, slot; in __hash_page_64K() local 292 hash in __hash_page_64K() [all...] |
/kernel/linux/linux-5.10/fs/nfs/ |
H A D | pnfs_dev.c | 79 long hash) in _lookup_deviceid() 83 hlist_for_each_entry_rcu(d, &nfs4_deviceid_cache[hash], node) in _lookup_deviceid() 172 const struct nfs4_deviceid *id, long hash) in __nfs4_find_get_deviceid() 178 hash); in __nfs4_find_get_deviceid() 190 long hash = nfs4_deviceid_hash(id); in nfs4_find_get_deviceid() local 193 d = __nfs4_find_get_deviceid(server, id, hash); in nfs4_find_get_deviceid() 202 d = __nfs4_find_get_deviceid(server, id, hash); in nfs4_find_get_deviceid() 208 hlist_add_head_rcu(&new->node, &nfs4_deviceid_cache[hash]); in nfs4_find_get_deviceid() 324 _deviceid_purge_client(const struct nfs_client *clp, long hash) in _deviceid_purge_client() argument 331 hlist_for_each_entry_rcu(d, &nfs4_deviceid_cache[hash], nod in _deviceid_purge_client() 77 _lookup_deviceid(const struct pnfs_layoutdriver_type *ld, const struct nfs_client *clp, const struct nfs4_deviceid *id, long hash) _lookup_deviceid() argument 171 __nfs4_find_get_deviceid(struct nfs_server *server, const struct nfs4_deviceid *id, long hash) __nfs4_find_get_deviceid() argument [all...] |
/kernel/linux/linux-5.10/fs/sharefs/ |
H A D | config.c | 30 unsigned long hash; in make_hash() local 32 hash = init_name_hash(0); in make_hash() 34 hash = partial_name_hash(tolower(*name++), hash); in make_hash() 36 return end_name_hash(hash); in make_hash() 44 str.hash = make_hash(str.name, str.len); in make_qstr() 129 bid_entry, hash_node, node, str->hash) { \ 150 bid_entry, hash_node, node, str->hash) { \ 166 bid_entry->str.hash); \ 180 bid_entry, hash_node, node, str->hash) { \ [all...] |
/kernel/linux/linux-5.10/fs/hmdfs/authority/ |
H A D | config.c | 33 unsigned long hash; in make_hash() local 35 hash = init_name_hash(0); in make_hash() 37 hash = partial_name_hash(tolower(*name++), hash); in make_hash() 39 return end_name_hash(hash); in make_hash() 47 str.hash = make_hash(str.name, str.len); in make_qstr() 132 bid_entry, hash_node, node, str->hash) { \ 153 bid_entry, hash_node, node, str->hash) { \ 169 bid_entry->str.hash); \ 183 bid_entry, hash_node, node, str->hash) { \ [all...] |
/kernel/linux/linux-6.6/fs/nfs/ |
H A D | pnfs_dev.c | 81 long hash) in _lookup_deviceid() 85 hlist_for_each_entry_rcu(d, &nfs4_deviceid_cache[hash], node) in _lookup_deviceid() 174 const struct nfs4_deviceid *id, long hash) in __nfs4_find_get_deviceid() 180 hash); in __nfs4_find_get_deviceid() 192 long hash = nfs4_deviceid_hash(id); in nfs4_find_get_deviceid() local 195 d = __nfs4_find_get_deviceid(server, id, hash); in nfs4_find_get_deviceid() 206 d = __nfs4_find_get_deviceid(server, id, hash); in nfs4_find_get_deviceid() 212 hlist_add_head_rcu(&new->node, &nfs4_deviceid_cache[hash]); in nfs4_find_get_deviceid() 331 _deviceid_purge_client(const struct nfs_client *clp, long hash) in _deviceid_purge_client() argument 338 hlist_for_each_entry_rcu(d, &nfs4_deviceid_cache[hash], nod in _deviceid_purge_client() 79 _lookup_deviceid(const struct pnfs_layoutdriver_type *ld, const struct nfs_client *clp, const struct nfs4_deviceid *id, long hash) _lookup_deviceid() argument 173 __nfs4_find_get_deviceid(struct nfs_server *server, const struct nfs4_deviceid *id, long hash) __nfs4_find_get_deviceid() argument [all...] |
/kernel/linux/linux-6.6/fs/hmdfs/authority/ |
H A D | config.c | 33 unsigned long hash; in make_hash() local 35 hash = init_name_hash(0); in make_hash() 37 hash = partial_name_hash(tolower(*name++), hash); in make_hash() 39 return end_name_hash(hash); in make_hash() 47 str.hash = make_hash(str.name, str.len); in make_qstr() 132 bid_entry, hash_node, node, str->hash) { \ 153 bid_entry, hash_node, node, str->hash) { \ 169 bid_entry->str.hash); \ 183 bid_entry, hash_node, node, str->hash) { \ [all...] |
/kernel/linux/linux-6.6/fs/sharefs/ |
H A D | config.c | 30 unsigned long hash; in make_hash() local 32 hash = init_name_hash(0); in make_hash() 34 hash = partial_name_hash(tolower(*name++), hash); in make_hash() 36 return end_name_hash(hash); in make_hash() 44 str.hash = make_hash(str.name, str.len); in make_qstr() 129 bid_entry, hash_node, node, str->hash) { \ 150 bid_entry, hash_node, node, str->hash) { \ 166 bid_entry->str.hash); \ 180 bid_entry, hash_node, node, str->hash) { \ [all...] |