/third_party/mesa3d/src/gallium/tools/trace/ |
H A D | model.py | 92 return hash(self.value) 107 return hash(self.value) 119 return hash(self.name) 133 tmp = tmp ^ hash(mobj) 147 tmp = hash(self.name) 149 tmp = tmp ^ hash(mname) ^ hash(mobj) 195 return hash(self.named_address()) 209 self.hashvalue = hash(self.klass) ^ hash(sel [all...] |
/third_party/node/deps/openssl/openssl/crypto/ess/ |
H A D | ess_lib.c | 68 if (!ASN1_OCTET_STRING_set(cid->hash, cert_sha1, SHA_DIGEST_LENGTH)) in ESS_CERT_ID_new_init() 142 unsigned char hash[EVP_MAX_MD_SIZE]; in ESS_CERT_ID_V2_new_init() local 143 unsigned int hash_len = sizeof(hash); in ESS_CERT_ID_V2_new_init() 146 memset(hash, 0, sizeof(hash)); in ESS_CERT_ID_V2_new_init() 164 if (!X509_digest(cert, hash_alg, hash, &hash_len)) in ESS_CERT_ID_V2_new_init() 167 if (!ASN1_OCTET_STRING_set(cid->hash, hash, hash_len)) in ESS_CERT_ID_V2_new_init() 257 cid_hash_len = cid != NULL ? cid->hash->length : cid_v2->hash in find() [all...] |
/third_party/openssl/crypto/ess/ |
H A D | ess_lib.c | 68 if (!ASN1_OCTET_STRING_set(cid->hash, cert_sha1, SHA_DIGEST_LENGTH)) in ESS_CERT_ID_new_init() 142 unsigned char hash[EVP_MAX_MD_SIZE]; in ESS_CERT_ID_V2_new_init() local 143 unsigned int hash_len = sizeof(hash); in ESS_CERT_ID_V2_new_init() 146 memset(hash, 0, sizeof(hash)); in ESS_CERT_ID_V2_new_init() 164 if (!X509_digest(cert, hash_alg, hash, &hash_len)) in ESS_CERT_ID_V2_new_init() 167 if (!ASN1_OCTET_STRING_set(cid->hash, hash, hash_len)) in ESS_CERT_ID_V2_new_init() 257 cid_hash_len = cid != NULL ? cid->hash->length : cid_v2->hash in find() [all...] |
/kernel/linux/linux-5.10/include/keys/ |
H A D | system_keyring.h | 36 extern int mark_hash_blacklisted(const char *hash); 37 extern int is_hash_blacklisted(const u8 *hash, size_t hash_len, 39 extern int is_binary_blacklisted(const u8 *hash, size_t hash_len); 41 static inline int is_hash_blacklisted(const u8 *hash, size_t hash_len, in is_hash_blacklisted() argument 47 static inline int is_binary_blacklisted(const u8 *hash, size_t hash_len) in is_binary_blacklisted() argument
|
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
H A D | data_descriptor.cpp | 34 std::u32string hash; in operator ()() local 35 hash.push_back(data_descriptor->object()); in operator ()() 37 hash.push_back(an_index); in operator ()() 39 return std::hash<std::u32string>()(hash); in operator ()()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
H A D | data_descriptor.cpp | 34 std::u32string hash; in operator ()() local 35 hash.push_back(data_descriptor->object()); in operator ()() 37 hash.push_back(an_index); in operator ()() 39 return std::hash<std::u32string>()(hash); in operator ()()
|
/third_party/spirv-tools/source/fuzz/ |
H A D | data_descriptor.cpp | 34 std::u32string hash; in operator ()() local 35 hash.push_back(data_descriptor->object()); in operator ()() 37 hash.push_back(an_index); in operator ()() 39 return std::hash<std::u32string>()(hash); in operator ()()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/ |
H A D | eap_peap_common.c | 21 u8 hash[SHA1_MAC_LEN]; in peap_prfplus() local 27 addr[0] = hash; in peap_prfplus() 72 if (hmac_sha1_vector(key, key_len, 5, addr, len, hash) < 0) in peap_prfplus() 75 os_memcpy(&buf[pos], hash, SHA1_MAC_LEN); in peap_prfplus() 78 os_memcpy(&buf[pos], hash, plen); in peap_prfplus()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/ |
H A D | eap_peap_common.c | 21 u8 hash[SHA1_MAC_LEN]; in peap_prfplus() local 27 addr[0] = hash; in peap_prfplus() 72 if (hmac_sha1_vector(key, key_len, 5, addr, len, hash) < 0) in peap_prfplus() 75 os_memcpy(&buf[pos], hash, SHA1_MAC_LEN); in peap_prfplus() 78 os_memcpy(&buf[pos], hash, plen); in peap_prfplus()
|
/kernel/linux/linux-5.10/net/batman-adv/ |
H A D | network-coding.c | 43 #include "hash.h" 137 * batadv_nc_mesh_init() - initialise coding hash table and start housekeeping 397 * batadv_nc_purge_orig_hash() - traverse entire originator hash to check if 403 struct batadv_hashtable *hash = bat_priv->orig_hash; in batadv_nc_purge_orig_hash() local 408 if (!hash) in batadv_nc_purge_orig_hash() 412 for (i = 0; i < hash->size; i++) { in batadv_nc_purge_orig_hash() 413 head = &hash->table[i]; in batadv_nc_purge_orig_hash() 424 * batadv_nc_purge_paths() - traverse all nc paths part of the hash and remove 427 * @hash: hash tabl 433 batadv_nc_purge_paths(struct batadv_priv *bat_priv, struct batadv_hashtable *hash, bool (*to_purge)(struct batadv_priv *, struct batadv_nc_path *)) batadv_nc_purge_paths() argument 505 u32 hash = 0; batadv_nc_hash_choose() local 547 batadv_nc_hash_find(struct batadv_hashtable *hash, void *data) batadv_nc_hash_find() argument 674 batadv_nc_process_nc_paths(struct batadv_priv *bat_priv, struct batadv_hashtable *hash, bool (*process_fn)(struct batadv_priv *, struct batadv_nc_path *, struct batadv_nc_packet *)) batadv_nc_process_nc_paths() argument 960 batadv_nc_get_path(struct batadv_priv *bat_priv, struct batadv_hashtable *hash, u8 *src, u8 *dst) batadv_nc_get_path() argument 1279 struct batadv_hashtable *hash = bat_priv->nc.coding_hash; batadv_nc_path_search() local 1746 struct batadv_hashtable *hash = bat_priv->nc.decoding_hash; batadv_nc_find_decoding_packet() local 1900 struct batadv_hashtable *hash = bat_priv->orig_hash; batadv_nc_nodes_seq_print_text() local [all...] |
/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/ |
H A D | Wrappers.cs | 131 int hash = 1; in GetHashCode() 132 if (Value != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Value); in GetHashCode() 134 hash ^= _unknownFields.GetHashCode(); in GetHashCode() 136 return hash; in GetHashCode() 311 int hash = 1; in GetHashCode() 312 if (Value != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Value); in GetHashCode() 314 hash ^= _unknownFields.GetHashCode(); in GetHashCode() 316 return hash; in GetHashCode() 491 int hash = 1; in GetHashCode() 492 if (Value != 0L) hash in GetHashCode() [all...] |
/kernel/linux/linux-6.6/fs/notify/fanotify/ |
H A D | fanotify.c | 141 if (old->hash != new->hash || in fanotify_should_merge() 404 unsigned int fh_len, unsigned int *hash, in fanotify_encode_fh() 459 if (hash) in fanotify_encode_fh() 460 *hash ^= fanotify_hash_fh(fh); in fanotify_encode_fh() 539 unsigned int *hash, in fanotify_alloc_path_event() 550 *hash ^= fanotify_hash_path(path); in fanotify_alloc_path_event() 579 unsigned int *hash, in fanotify_alloc_fid_event() 590 *hash ^= fanotify_hash_fsid(fsid); in fanotify_alloc_fid_event() 592 hash, gf in fanotify_alloc_fid_event() 403 fanotify_encode_fh(struct fanotify_fh *fh, struct inode *inode, unsigned int fh_len, unsigned int *hash, gfp_t gfp) fanotify_encode_fh() argument 538 fanotify_alloc_path_event(const struct path *path, unsigned int *hash, gfp_t gfp) fanotify_alloc_path_event() argument 577 fanotify_alloc_fid_event(struct inode *id, __kernel_fsid_t *fsid, unsigned int *hash, gfp_t gfp) fanotify_alloc_fid_event() argument 597 fanotify_alloc_name_event(struct inode *dir, __kernel_fsid_t *fsid, const struct qstr *name, struct inode *child, struct dentry *moved, unsigned int *hash, gfp_t gfp) fanotify_alloc_name_event() argument 672 fanotify_alloc_error_event( struct fsnotify_group *group, __kernel_fsid_t *fsid, const void *data, int data_type, unsigned int *hash) fanotify_alloc_error_event() argument 727 unsigned int hash = 0; fanotify_alloc_event() local [all...] |
/kernel/linux/linux-5.10/security/selinux/ss/ |
H A D | sidtab.c | 58 static u32 context_to_sid(struct sidtab *s, struct context *context, u32 hash) in context_to_sid() argument 64 hash_for_each_possible_rcu(s->context_to_sid, entry, list, hash) { in context_to_sid() 65 if (entry->hash != hash) in context_to_sid() 79 u32 hash; in sidtab_set_initial() local 96 hash = context_compute_hash(context); in sidtab_set_initial() 101 * to avoid duplicate entries and long linked lists upon hash in sidtab_set_initial() 104 if (!context_to_sid(s, context, hash)) { in sidtab_set_initial() 106 isid->entry.hash = hash; in sidtab_set_initial() 268 u32 count, hash = context_compute_hash(context); sidtab_context_to_sid() local [all...] |
/kernel/linux/linux-6.6/security/selinux/ss/ |
H A D | sidtab.c | 59 static u32 context_to_sid(struct sidtab *s, struct context *context, u32 hash) in context_to_sid() argument 65 hash_for_each_possible_rcu(s->context_to_sid, entry, list, hash) { in context_to_sid() 66 if (entry->hash != hash) in context_to_sid() 80 u32 hash; in sidtab_set_initial() local 97 hash = context_compute_hash(context); in sidtab_set_initial() 102 * to avoid duplicate entries and long linked lists upon hash in sidtab_set_initial() 105 if (!context_to_sid(s, context, hash)) { in sidtab_set_initial() 107 isid->entry.hash = hash; in sidtab_set_initial() 269 u32 count, hash = context_compute_hash(context); sidtab_context_to_sid() local [all...] |
/third_party/ffmpeg/libavformat/tests/ |
H A D | movenc.c | 57 uint8_t hash[HASH_SIZE]; variable 156 av_md5_final(md5, hash); in close_out() 158 printf("%02x", hash[i]); in close_out() 439 memcpy(content, hash, HASH_SIZE); in main() 476 check(!memcmp(hash, content, HASH_SIZE), "delay_moov differs from empty_moov"); in main() 526 memcpy(header, hash, HASH_SIZE); in main() 540 memcpy(content, hash, HASH_SIZE); in main() 552 check(!memcmp(hash, header, HASH_SIZE), "delay_moov header differs from empty_moov"); in main() 559 check(!memcmp(hash, content, HASH_SIZE), "delay_moov content differs from empty_moov"); in main() 574 memcpy(content, hash, HASH_SIZ in main() [all...] |
/third_party/spirv-tools/source/opt/ |
H A D | types.h | 153 // Returns true if this cannot hash to the same value as another type in the 161 // will hash them to the same value. 166 // Returns the hash value of this type. 169 size_t ComputeHashValue(size_t hash, SeenTypes* seen) const; 212 // Add any type-specific state to |hash| and returns new hash. 213 virtual size_t ComputeExtraStateHash(size_t hash, SeenTypes* seen) const = 0; 243 size_t ComputeExtraStateHash(size_t hash, SeenTypes* seen) const override; 263 size_t ComputeExtraStateHash(size_t hash, SeenTypes* seen) const override; 283 size_t ComputeExtraStateHash(size_t hash, SeenType [all...] |
/third_party/node/test/fixtures/crypto/ |
H A D | hmac.js | 42 Object.keys(raw).forEach((hash) => { 44 hash, 45 keyBuffer: raw[hash], 47 signature: signatures[hash]
|
/kernel/linux/linux-6.6/drivers/crypto/allwinner/sun4i-ss/ |
H A D | sun4i-ss-hash.c | 3 * sun4i-ss-hash.c - hardware cryptographic accelerator for Allwinner A20 SoC 27 algt = container_of(alg, struct sun4i_ss_alg_template, alg.hash); in sun4i_hash_crainit() 56 algt = container_of(alg, struct sun4i_ss_alg_template, alg.hash); in sun4i_hash_init() 74 octx->hash[i] = op->hash[i]; in sun4i_hash_export_md5() 76 octx->hash[0] = SHA1_H0; in sun4i_hash_export_md5() 77 octx->hash[1] = SHA1_H1; in sun4i_hash_export_md5() 78 octx->hash[2] = SHA1_H2; in sun4i_hash_export_md5() 79 octx->hash[3] = SHA1_H3; in sun4i_hash_export_md5() 99 op->hash[ in sun4i_hash_import_md5() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | rss.c | 71 struct mlx5e_rss_params_hash hash; member 98 rss->hash.hfunc = ETH_RSS_HASH_TOP; in mlx5e_rss_params_init() 99 netdev_rss_key_fill(rss->hash.toeplitz_hash_key, in mlx5e_rss_params_init() 100 sizeof(rss->hash.toeplitz_hash_key)); in mlx5e_rss_params_init() 166 mlx5e_tir_builder_build_rss(builder, &rss->hash, &rss_tt, inner); in mlx5e_rss_create_tir() 248 mlx5e_tir_builder_build_rss(builder, &rss->hash, &rss_tt, inner); in mlx5e_rss_update_tir() 267 "Failed to update RSS hash of indirect TIR for traffic type %d: err = %d\n", in mlx5e_rss_update_tirs() 278 "Failed to update RSS hash of inner indirect TIR for traffic type %d: err = %d\n", in mlx5e_rss_update_tirs() 398 err = mlx5e_rqt_redirect_indir(&rss->rqt, rqns, num_rqns, rss->hash.hfunc, &rss->indir); in mlx5e_rss_apply() 480 memcpy(key, rss->hash in mlx5e_rss_get_rxfh() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/vDSO/ |
H A D | parse_vdso.c | 112 ELF(Word) *hash = 0; in vdso_init_from_sysinfo_ehdr() 130 hash = (ELF(Word) *) in vdso_init_from_sysinfo_ehdr() 146 if (!vdso_info.symstrings || !vdso_info.symtab || !hash) in vdso_init_from_sysinfo_ehdr() 152 /* Parse the hash table header. */ in vdso_init_from_sysinfo_ehdr() 153 vdso_info.nbucket = hash[0]; in vdso_init_from_sysinfo_ehdr() 154 vdso_info.nchain = hash[1]; in vdso_init_from_sysinfo_ehdr() 155 vdso_info.bucket = &hash[2]; in vdso_init_from_sysinfo_ehdr() 156 vdso_info.chain = &hash[vdso_info.nbucket + 2]; in vdso_init_from_sysinfo_ehdr() 163 const char *name, ELF(Word) hash) in ELF() 167 * ver matches name (which hashes to hash) in ELF() [all...] |
/kernel/linux/linux-5.10/kernel/locking/ |
H A D | qspinlock_paravirt.h | 6 #include <linux/hash.h> 156 * Lock and MCS node addresses hash table for fast lookup 161 * Dynamically allocate a hash table big enough to hold at least 4X the 163 * granularity. So the minimum number of hash buckets should be at least 183 * Allocate memory for the PV qspinlock hash buckets 207 #define for_each_hash_entry(he, offset, hash) \ 208 for (hash &= ~(PV_HE_PER_LINE - 1), he = &pv_lock_hash[hash], offset = 0; \ 210 offset++, he = &pv_lock_hash[(hash + offset) & ((1 << pv_lock_hash_bits) - 1)]) 214 unsigned long offset, hash in pv_hash() local 241 unsigned long offset, hash = hash_ptr(lock, pv_lock_hash_bits); pv_unhash() local [all...] |
/kernel/linux/linux-6.6/kernel/locking/ |
H A D | qspinlock_paravirt.h | 6 #include <linux/hash.h> 156 * Lock and MCS node addresses hash table for fast lookup 161 * Dynamically allocate a hash table big enough to hold at least 4X the 163 * granularity. So the minimum number of hash buckets should be at least 183 * Allocate memory for the PV qspinlock hash buckets 207 #define for_each_hash_entry(he, offset, hash) \ 208 for (hash &= ~(PV_HE_PER_LINE - 1), he = &pv_lock_hash[hash], offset = 0; \ 210 offset++, he = &pv_lock_hash[(hash + offset) & ((1 << pv_lock_hash_bits) - 1)]) 214 unsigned long offset, hash in pv_hash() local 241 unsigned long offset, hash = hash_ptr(lock, pv_lock_hash_bits); pv_unhash() local [all...] |
/kernel/linux/linux-6.6/drivers/crypto/xilinx/ |
H A D | zynqmp-sha.c | 7 #include <crypto/hash.h> 8 #include <crypto/internal/hash.h> 46 static int zynqmp_sha_init_tfm(struct crypto_shash *hash) in zynqmp_sha_init_tfm() argument 48 const char *fallback_driver_name = crypto_shash_alg_name(hash); in zynqmp_sha_init_tfm() 49 struct zynqmp_sha_tfm_ctx *tfm_ctx = crypto_shash_ctx(hash); in zynqmp_sha_init_tfm() 50 struct shash_alg *alg = crypto_shash_alg(hash); in zynqmp_sha_init_tfm() 64 hash->descsize += crypto_shash_descsize(tfm_ctx->fbk_tfm); in zynqmp_sha_init_tfm() 69 static void zynqmp_sha_exit_tfm(struct crypto_shash *hash) in zynqmp_sha_exit_tfm() argument 71 struct zynqmp_sha_tfm_ctx *tfm_ctx = crypto_shash_ctx(hash); in zynqmp_sha_exit_tfm()
|
/kernel/linux/linux-6.6/tools/testing/selftests/vDSO/ |
H A D | parse_vdso.c | 112 ELF(Word) *hash = 0; in vdso_init_from_sysinfo_ehdr() 130 hash = (ELF(Word) *) in vdso_init_from_sysinfo_ehdr() 146 if (!vdso_info.symstrings || !vdso_info.symtab || !hash) in vdso_init_from_sysinfo_ehdr() 152 /* Parse the hash table header. */ in vdso_init_from_sysinfo_ehdr() 153 vdso_info.nbucket = hash[0]; in vdso_init_from_sysinfo_ehdr() 154 vdso_info.nchain = hash[1]; in vdso_init_from_sysinfo_ehdr() 155 vdso_info.bucket = &hash[2]; in vdso_init_from_sysinfo_ehdr() 156 vdso_info.chain = &hash[vdso_info.nbucket + 2]; in vdso_init_from_sysinfo_ehdr() 163 const char *name, ELF(Word) hash) in ELF() 167 * ver matches name (which hashes to hash) in ELF() [all...] |
/third_party/ffmpeg/tests/api/ |
H A D | api-h264-slice-test.c | 43 #include "libavutil/hash.h" 63 struct AVHashContext *hash; in decode() local 77 "#hash: MD5\n" in decode() 83 "#stream#, dts, pts, duration, size, hash\n"); in decode() 87 if ((ret = av_hash_alloc(&hash, "md5")) < 0) { in decode() 90 av_hash_init(hash); in decode() 93 av_hash_update(hash, &frame->data[0][i * frame->linesize[0]], frame->width); in decode() 95 av_hash_update(hash, &frame->data[1][i * frame->linesize[1]], frame->width >> desc->log2_chroma_w); in decode() 97 av_hash_update(hash, &frame->data[2][i * frame->linesize[2]], frame->width >> desc->log2_chroma_w); in decode() 99 av_hash_final_hex(hash, su in decode() [all...] |