/linux-master/crypto/ |
H A D | sm2.c | 15 #include <crypto/hash.h> 326 static int _sm2_verify(struct mpi_ec_ctx *ec, MPI hash, MPI sig_r, MPI sig_s) argument 359 mpi_addm(t, hash, x1, ec->n); 384 MPI hash; local 406 hash = mpi_read_raw_data(buffer + req->src_len, req->dst_len); 407 if (!hash) 410 ret = _sm2_verify(ec, hash, sig.sig_r, sig.sig_s); 412 mpi_free(hash);
|
H A D | ahash.c | 5 * This is the implementation of the ahash (asynchronous hash) API. It differs 6 * from shash (synchronous hash) in that ahash supports asynchronous operations, 26 #include "hash.h" 508 struct crypto_ahash *hash = __crypto_ahash_cast(tfm); local 509 struct ahash_alg *alg = crypto_ahash_alg(hash); 511 alg->exit_tfm(hash); 516 struct crypto_ahash *hash = __crypto_ahash_cast(tfm); local 517 struct ahash_alg *alg = crypto_ahash_alg(hash); 519 crypto_ahash_set_statesize(hash, alg->halg.statesize); 524 ahash_set_needkey(hash, al 631 crypto_clone_ahash(struct crypto_ahash *hash) argument [all...] |
/linux-master/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-core.c | 308 .alg.hash.base = { 334 .alg.hash.op = { 340 .alg.hash.base = { 366 .alg.hash.op = { 372 .alg.hash.base = { 398 .alg.hash.op = { 404 .alg.hash.base = { 430 .alg.hash.op = { 436 .alg.hash.base = { 463 .alg.hash [all...] |
/linux-master/drivers/crypto/allwinner/sun4i-ss/ |
H A D | sun4i-ss-core.c | 37 .alg.hash = { 63 .alg.hash = { 258 ss_algs[i].alg.hash.halg.base.cra_driver_name, 259 ss_algs[i].alg.hash.halg.base.cra_name, 467 err = crypto_register_ahash(&ss_algs[i].alg.hash); 470 ss_algs[i].alg.hash.halg.base.cra_name); 498 crypto_unregister_ahash(&ss_algs[i].alg.hash); 521 crypto_unregister_ahash(&ss_algs[i].alg.hash);
|
/linux-master/include/linux/sunrpc/ |
H A D | svcauth.h | 17 #include <linux/hash.h> 80 struct hlist_node hash; member in struct:auth_domain
|
/linux-master/arch/parisc/kernel/ |
H A D | vmlinux.lds.S | 182 *(.hash) 183 *(.gnu.hash)
|
/linux-master/drivers/net/ppp/ |
H A D | pppoe.c | 96 * we could use _single_ hash table for all 97 * nets by injecting net id into the hash but 98 * it would increase hash chains and add 141 unsigned char hash = 0; local 145 hash ^= addr[i]; 147 hash ^= (__force __u32)sid >> i; 149 hash ^= hash >> i; 151 return hash & PPPOE_HASH_MASK; 162 int hash local 179 int hash = hash_item(po->pppoe_pa.sid, po->pppoe_pa.remote); local 200 int hash = hash_item(sid, addr); local 1090 int hash = hash_item(po->pppoe_pa.sid, po->pppoe_pa.remote); local [all...] |
/linux-master/net/ipv6/ |
H A D | inet6_hashtables.c | 43 * Sockets in TCP_CLOSE state are _always_ taken out of the hash, so 62 unsigned int hash = inet6_ehashfn(net, daddr, hnum, saddr, sport); local 63 unsigned int slot = hash & hashinfo->ehash_mask; 69 if (sk->sk_hash != hash) 123 * @ehashfn: hash function used to generate the fallback hash. 274 const unsigned int hash = inet6_ehashfn(net, daddr, lport, saddr, local 276 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); 277 spinlock_t *lock = inet_ehash_lockp(hinfo, hash); 285 if (sk2->sk_hash != hash) [all...] |
/linux-master/security/selinux/ss/ |
H A D | ebitmap.c | 546 u32 ebitmap_hash(const struct ebitmap *e, u32 hash) argument 550 /* need to change hash even if ebitmap is empty */ 551 hash = jhash_1word(e->highbit, hash); 553 hash = jhash_1word(node->startbit, hash); 554 hash = jhash(node->maps, sizeof(node->maps), hash); 556 return hash;
|
/linux-master/tools/testing/vsock/ |
H A D | util.c | 513 unsigned long hash = 5381; local 517 hash = ((hash << 5) + hash) + ((unsigned char *)data)[i]; 521 return hash; 537 unsigned long hash; local 556 hash = hash_djb2(tmp, iov_bytes); 559 return hash;
|
/linux-master/tools/perf/util/ |
H A D | expr.c | 58 size_t hash = 0; local 61 hash *= 31; 62 hash += *str; 65 return hash; 75 struct hashmap *hash; local 77 hash = hashmap__new(key_hash, key_equal, NULL); 78 if (IS_ERR(hash)) 80 return hash;
|
/linux-master/drivers/crypto/rockchip/ |
H A D | rk3288_crypto.c | 14 #include <crypto/internal/hash.h> 225 rk_cipher_algs[i]->alg.hash.base.halg.base.cra_driver_name, 226 rk_cipher_algs[i]->alg.hash.base.halg.base.cra_name, 268 rk_cipher_algs[i]->alg.hash.base.halg.base.cra_name, 269 rk_cipher_algs[i]->alg.hash.base.halg.base.cra_driver_name); 270 err = crypto_engine_register_ahash(&rk_cipher_algs[i]->alg.hash); 285 crypto_engine_unregister_ahash(&rk_cipher_algs[i]->alg.hash); 298 crypto_engine_unregister_ahash(&rk_cipher_algs[i]->alg.hash);
|
/linux-master/drivers/hwtracing/coresight/ |
H A D | coresight-sysfs.c | 14 * Use IDR to map the hash of the source's device name 171 u32 hash; local 235 * Use the hash of source's device name as ID 238 hash = hashlen_hash(hashlen_string(NULL, dev_name(&csdev->dev))); 239 ret = idr_alloc_u32(&path_idr, path, &hash, hash, GFP_KERNEL); 265 u32 hash; local 285 hash = hashlen_hash(hashlen_string(NULL, dev_name(&csdev->dev))); 286 /* Find the path by the hash. */ 287 path = idr_find(&path_idr, hash); [all...] |
/linux-master/arch/loongarch/kernel/ |
H A D | vmlinux.lds.S | 162 *(.dynamic .dynsym .dynstr .hash .gnu.hash)
|
/linux-master/fs/affs/ |
H A D | namei.c | 49 unsigned long hash; local 57 hash = init_name_hash(dentry); 60 hash = partial_name_hash(fn(*name), hash); 61 qstr->hash = end_name_hash(hash); 160 u32 hash; local 162 hash = len = min(len, AFFSNAMEMAX); 164 hash = (hash * 1 [all...] |
/linux-master/drivers/crypto/allwinner/sun8i-ce/ |
H A D | sun8i-ce-hash.c | 3 * sun8i-ce-hash.c - hardware cryptographic offloader for 13 #include <crypto/internal/hash.h> 33 algt = container_of(alg, struct sun8i_ce_alg_template, alg.hash.base); 126 alg.hash.base); 169 alg.hash.base); 197 alg.hash.base); 213 algt = container_of(alg, struct sun8i_ce_alg_template, alg.hash.base); 262 algt = container_of(alg, struct sun8i_ce_alg_template, alg.hash.base); 354 algt = container_of(alg, struct sun8i_ce_alg_template, alg.hash.base); 357 bs = algt->alg.hash [all...] |
/linux-master/net/sched/ |
H A D | sch_sfq.c | 53 When hash collisions occur, several flows are considered as one. 70 - number of hash buckets to 65536. 106 unsigned short hash; /* hash value (index in ht[]) */ member in struct:sfq_slot 116 unsigned int divisor; /* number of slots in hash table */ 321 q->ht[slot->hash] = SFQ_EMPTY_SLOT; 349 unsigned int hash, dropped; local 356 hash = sfq_classify(skb, sch, &ret); 357 if (hash == 0) { 363 hash 563 unsigned int hash = sfq_hash(q, skb); local [all...] |
/linux-master/net/openvswitch/ |
H A D | flow_table.c | 552 static struct hlist_head *find_bucket(struct table_instance *ti, u32 hash) argument 554 hash = jhash_1word(hash, ti->hash_seed); 555 return &ti->buckets[hash & (ti->n_buckets - 1)]; 563 head = find_bucket(ti, flow->flow_table.hash); 572 head = find_bucket(ti, flow->ufid_table.hash); 650 /* Make sure number of hash bytes are multiple of u32. */ 705 u32 hash; local 709 hash = flow_hash(&masked_key, &mask->range); 710 head = find_bucket(ti, hash); 794 u32 hash; local 923 u32 hash; local [all...] |
/linux-master/net/batman-adv/ |
H A D | translation-table.c | 47 #include "hash.h" 61 /* hash class keys */ 97 * batadv_choose_tt() - return the index of the tt entry in the hash table 99 * @size: the size of the hash table 101 * Return: the hash index where the object represented by 'data' should be 107 u32 hash = 0; local 110 hash = jhash(&tt->addr, ETH_ALEN, hash); 111 hash = jhash(&tt->vid, sizeof(tt->vid), hash); 126 batadv_tt_hash_find(struct batadv_hashtable *hash, const u8 *addr, unsigned short vid) argument 1128 batadv_tt_local_dump_bucket(struct sk_buff *msg, u32 portid, struct netlink_callback *cb, struct batadv_priv *bat_priv, struct batadv_hashtable *hash, unsigned int bucket, int *idx_s) argument 1170 struct batadv_hashtable *hash; local 1345 struct batadv_hashtable *hash = bat_priv->tt.local_hash; local 1362 struct batadv_hashtable *hash; local 1945 struct batadv_hashtable *hash; local 2200 struct batadv_hashtable *hash = bat_priv->tt.global_hash; local 2266 struct batadv_hashtable *hash = bat_priv->tt.global_hash; local 2305 struct batadv_hashtable *hash; local 2441 struct batadv_hashtable *hash = bat_priv->tt.global_hash; local 2521 struct batadv_hashtable *hash = bat_priv->tt.local_hash; local 2751 batadv_tt_tvlv_generate(struct batadv_priv *bat_priv, struct batadv_hashtable *hash, void *tvlv_buff, u16 tt_len, bool (*valid_cb)(const void *, const void *, u8 *flags), void *cb_data) argument 3602 struct batadv_hashtable *hash = bat_priv->tt.local_hash; local 3639 struct batadv_hashtable *hash = bat_priv->tt.local_hash; local [all...] |
/linux-master/net/core/ |
H A D | sock_map.c | 837 u32 hash; member in struct:bpf_shtab_elem 863 u32 hash) 865 return &htab->buckets[hash & (htab->buckets_num - 1)]; 869 sock_hash_lookup_elem_raw(struct hlist_head *head, u32 hash, void *key, argument 875 if (elem->hash == hash && 886 u32 key_size = map->key_size, hash; local 892 hash = sock_hash_bucket_hash(key, key_size); 893 bucket = sock_hash_select_bucket(htab, hash); 894 elem = sock_hash_lookup_elem_raw(&bucket->head, hash, ke 862 sock_hash_select_bucket(struct bpf_shtab *htab, u32 hash) argument 934 u32 hash, key_size = map->key_size; local 957 sock_hash_alloc_elem(struct bpf_shtab *htab, void *key, u32 key_size, u32 hash, struct sock *sk, struct bpf_shtab_elem *old) argument 988 u32 key_size = map->key_size, hash; local 1054 u32 hash, key_size = map->key_size; local [all...] |
/linux-master/arch/arm/crypto/ |
H A D | crct10dif-ce-glue.c | 14 #include <crypto/internal/hash.h>
|
/linux-master/drivers/crypto/nx/ |
H A D | nx_debugfs.c | 17 #include <crypto/hash.h>
|
/linux-master/include/net/ |
H A D | bpf_sk_storage.h | 8 #include <linux/hash.h>
|
/linux-master/include/crypto/internal/ |
H A D | kdf_selftest.h | 10 #include <crypto/hash.h> 42 pr_err("alg: kdf: could not allocate hash handle for %s\n",
|
/linux-master/include/crypto/ |
H A D | cryptd.h | 19 #include <crypto/hash.h>
|