/kernel/linux/linux-5.10/arch/arm/crypto/ |
H A D | nhpoly1305-neon-glue.c | 3 * NHPoly1305 - ε-almost-∆-universal hash function for Adiantum 11 #include <crypto/internal/hash.h> 17 u8 hash[NH_HASH_BYTES]); 21 __le64 hash[NH_NUM_PASSES]) in _nh_neon() 23 nh_neon(key, message, message_len, (u8 *)hash); in _nh_neon() 74 MODULE_DESCRIPTION("NHPoly1305 ε-almost-∆-universal hash function (NEON-accelerated)"); 20 _nh_neon(const u32 *key, const u8 *message, size_t message_len, __le64 hash[NH_NUM_PASSES]) _nh_neon() argument
|
/kernel/linux/linux-6.6/arch/arm64/kernel/vdso/ |
H A D | vdso.lds.S | 27 .hash : { *(.hash) } :text 28 .gnu.hash : { *(.gnu.hash) }
|
/kernel/linux/linux-6.6/arch/ia64/kernel/ |
H A D | gate.lds.S | 15 .hash : { *(.hash) } :readable 16 .gnu.hash : { *(.gnu.hash) }
|
/kernel/linux/linux-6.6/arch/arm64/kernel/vdso32/ |
H A D | vdso.lds.S | 27 .hash : { *(.hash) } :text 28 .gnu.hash : { *(.gnu.hash) }
|
/kernel/linux/linux-6.6/arch/mips/vdso/ |
H A D | vdso.lds.S | 35 .hash : { *(.hash) } :text 36 .gnu.hash : { *(.gnu.hash) }
|
/kernel/linux/linux-6.6/arch/riscv/kernel/vdso/ |
H A D | vdso.lds.S | 18 .hash : { *(.hash) } :text 19 .gnu.hash : { *(.gnu.hash) }
|
/kernel/linux/linux-5.10/include/scsi/ |
H A D | libiscsi_tcp.h | 30 struct ahash_request *hash; member 103 struct ahash_request *hash); 109 struct ahash_request *hash); 112 extern void iscsi_tcp_dgst_header(struct ahash_request *hash, const void *hdr,
|
/kernel/linux/linux-6.6/include/scsi/ |
H A D | libiscsi_tcp.h | 30 struct ahash_request *hash; member 103 struct ahash_request *hash); 109 struct ahash_request *hash); 112 extern void iscsi_tcp_dgst_header(struct ahash_request *hash, const void *hdr,
|
/kernel/linux/linux-6.6/arch/x86/entry/vdso/ |
H A D | vdso-layout.lds.S | 39 .hash : { *(.hash) } :text 40 .gnu.hash : { *(.gnu.hash) }
|
/test/xts/acts/security_lite/huks/liteos_a_adapter/ |
H A D | hks_hash_test.cpp | 80 struct HksBlob *hash = NULL; in HWTEST_F() local 94 ret = TestConstructBlobOut(&hash, in HWTEST_F() 101 ret = HksHashRun(paramSet, srcData, hash, 1); in HWTEST_F() 109 TestFreeBlob(&hash); in HWTEST_F()
|
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/ |
H A D | hash_utils.c | 20 #define pr_fmt(fmt) "hash-mmu: " fmt 269 unsigned long hash, hpteg; in htab_bolt_mapping() local 298 hash = hpt_hash(vpn, shift, ssize); in htab_bolt_mapping() 299 hpteg = ((hash & htab_hash_mask) * HPTES_PER_GROUP); in htab_bolt_mapping() 318 hpteg = ((~hash & htab_hash_mask) * HPTES_PER_GROUP); in htab_bolt_mapping() 794 * If hash size isn't already provided by the platform, we try to in htab_get_table_size() 930 * Cell may require the hash table down low when using the in htab_initialize() 979 /* create bolted the linear mapping in the hash table */ in htab_initialize() 1069 * 4k use hugepd format, so for hash set then to in hash__early_init_mmu() 1097 panic("hash__early_init_mmu: No MMU hash op in hash__early_init_mmu() 1750 unsigned long hash, gslot, hidx; pte_get_hash_gslot() local 1790 unsigned long hidx, shift, vpn, hash, slot; flush_hash_hugepage() local 1876 hpte_insert_repeating(unsigned long hash, unsigned long vpn, unsigned long pa, unsigned long rflags, unsigned long vflags, int psize, int ssize) hpte_insert_repeating() argument 1912 unsigned long hash; kernel_map_linear_page() local 1937 unsigned long hash, hidx, slot; kernel_unmap_linear_page() local [all...] |
H A D | hash_native.c | 56 * tlbiel instruction for hash, set invalidation 65 unsigned int r = 0; /* hash format */ in tlbiel_hash_set_isa300() 211 /* Radix flush for a hash guest */ in fixup_tlbie_vpn() 455 * a tlb invalidate. If a hash bucket gets full, we "evict" a more/less in native_hpte_updatepp() 515 unsigned long hash; in native_hpte_find() local 518 hash = hpt_hash(vpn, mmu_psize_defs[psize].shift, ssize); in native_hpte_find() 522 * We try to keep bolted entries always in primary hash in native_hpte_find() 525 hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP; in native_hpte_find() 529 hpte_group = (~hash & htab_hash_mask) * HPTES_PER_GROUP; in native_hpte_find() 614 DBG_LOW(" invalidate(vpn=%016lx, hash in native_hpte_invalidate() 654 unsigned long hidx, vpn = 0, hash, slot; native_hugepage_invalidate() local 832 unsigned long hash, index, hidx, shift, slot; native_flush_hash_range() local [all...] |
/kernel/linux/linux-5.10/net/l2tp/ |
H A D | l2tp_core.c | 42 #include <linux/hash.h> 128 /* Session hash global list for L2TPv3. 131 * hash on the session_id, rather than a simple bitmask. 139 /* Session hash list. 142 * session_ids. So we do a real hash on the session_id, rather than a 288 int hash; in l2tp_session_get_nth() local 293 for (hash = 0; hash < L2TP_HASH_SIZE; hash++) { in l2tp_session_get_nth() 294 hlist_for_each_entry(session, &tunnel->session_hlist[hash], hlis in l2tp_session_get_nth() 316 int hash; l2tp_session_get_by_ifname() local 1193 int hash; l2tp_tunnel_closeall() local 1645 int hash; l2tp_init_net() local 1663 int hash; l2tp_exit_net() local [all...] |
/kernel/linux/linux-6.6/net/l2tp/ |
H A D | l2tp_core.c | 42 #include <linux/hash.h> 128 /* Session hash global list for L2TPv3. 131 * hash on the session_id, rather than a simple bitmask. 139 /* Session hash list. 142 * session_ids. So we do a real hash on the session_id, rather than a 288 int hash; in l2tp_session_get_nth() local 293 for (hash = 0; hash < L2TP_HASH_SIZE; hash++) { in l2tp_session_get_nth() 294 hlist_for_each_entry_rcu(session, &tunnel->session_hlist[hash], hlis in l2tp_session_get_nth() 316 int hash; l2tp_session_get_by_ifname() local 1195 int hash; l2tp_tunnel_closeall() local 1643 int hash; l2tp_init_net() local 1661 int hash; l2tp_exit_net() local [all...] |
/kernel/linux/linux-6.6/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; in batadv_choose_tt() local 110 hash = jhash(&tt->addr, ETH_ALEN, hash); in batadv_choose_tt() 111 hash = jhash(&tt->vid, sizeof(tt->vid), hash); in batadv_choose_tt() 126 batadv_tt_hash_find(struct batadv_hashtable *hash, const u8 *addr, unsigned short vid) batadv_tt_hash_find() 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) batadv_tt_local_dump_bucket() argument 1170 struct batadv_hashtable *hash; batadv_tt_local_dump() local 1345 struct batadv_hashtable *hash = bat_priv->tt.local_hash; batadv_tt_local_purge() local 1362 struct batadv_hashtable *hash; batadv_tt_local_table_free() local 1945 struct batadv_hashtable *hash; batadv_tt_global_dump() local 2200 struct batadv_hashtable *hash = bat_priv->tt.global_hash; batadv_tt_global_del_orig() local 2266 struct batadv_hashtable *hash = bat_priv->tt.global_hash; batadv_tt_global_purge() local 2305 struct batadv_hashtable *hash; batadv_tt_global_table_free() local 2441 struct batadv_hashtable *hash = bat_priv->tt.global_hash; batadv_tt_global_crc() local 2521 struct batadv_hashtable *hash = bat_priv->tt.local_hash; batadv_tt_local_crc() 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) batadv_tt_tvlv_generate() argument 3602 struct batadv_hashtable *hash = bat_priv->tt.local_hash; batadv_tt_local_set_flags() local 3639 struct batadv_hashtable *hash = bat_priv->tt.local_hash; batadv_tt_local_purge_pending_clients() local [all...] |
/kernel/linux/linux-5.10/crypto/ |
H A D | adiantum.c | 12 * cipher, two passes of an ε-almost-∆-universal (ε-∆U) hash function based on 24 * This implementation doesn't currently allow other ε-∆U hash functions, i.e. 26 * but still provably as secure, and also the ε-∆U hash function of HBSH is 29 * here. Nevertheless, if needed in the future, support for other ε-∆U hash 35 #include <crypto/internal/hash.h> 44 * cipher's block size and the hash function's output. 51 /* Size of the hash key (K_H) in bytes */ 72 struct crypto_shash *hash; member 95 * The result of the Poly1305 ε-∆U hash function applied to 109 * hash ke 403 struct crypto_shash *hash; adiantum_init_tfm() local [all...] |
H A D | ecdsa.c | 94 static int _ecdsa_verify(struct ecc_ctx *ctx, const u64 *hash, const u64 *r, const u64 *s) in _ecdsa_verify() argument 110 /* hash is given */ in _ecdsa_verify() 111 pr_devel("hash : %016llx %016llx ... %016llx\n", in _ecdsa_verify() 112 hash[ndigits - 1], hash[ndigits - 2], hash[0]); in _ecdsa_verify() 116 /* u1 = (hash * s1) mod n */ in _ecdsa_verify() 117 vli_mod_mult_slow(u1, hash, s1, curve->n, ndigits); in _ecdsa_verify() 146 u64 hash[ECC_MAX_DIGITS]; in ecdsa_verify() local 167 /* if the hash i in ecdsa_verify() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/mm/book3s64/ |
H A D | hash_native.c | 130 /* Radix flush for a hash guest */ in fixup_tlbie_vpn() 393 * a tlb invalidate. If a hash bucket gets full, we "evict" a more/less in native_hpte_updatepp() 455 unsigned long hash; in native_hpte_find() local 458 hash = hpt_hash(vpn, mmu_psize_defs[psize].shift, ssize); in native_hpte_find() 462 * We try to keep bolted entries always in primary hash in native_hpte_find() 465 hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP; in native_hpte_find() 469 hpte_group = (~hash & htab_hash_mask) * HPTES_PER_GROUP; in native_hpte_find() 565 DBG_LOW(" invalidate(vpn=%016lx, hash: %lx)\n", vpn, slot); in native_hpte_invalidate() 584 * a tlb invalidate. If a hash bucket gets full, we "evict" a more/less in native_hpte_invalidate() 606 unsigned long hidx, vpn = 0, hash, slo in native_hugepage_invalidate() local 782 unsigned long hash, index, hidx, shift, slot; native_flush_hash_range() local [all...] |
/kernel/linux/linux-6.6/crypto/ |
H A D | adiantum.c | 12 * cipher, two passes of an ε-almost-∆-universal (ε-∆U) hash function based on 24 * This implementation doesn't currently allow other ε-∆U hash functions, i.e. 26 * but still provably as secure, and also the ε-∆U hash function of HBSH is 29 * here. Nevertheless, if needed in the future, support for other ε-∆U hash 36 #include <crypto/internal/hash.h> 45 * cipher's block size and the hash function's output. 52 /* Size of the hash key (K_H) in bytes */ 73 struct crypto_shash *hash; member 96 * The result of the Poly1305 ε-∆U hash function applied to 110 * hash ke 403 struct crypto_shash *hash; adiantum_init_tfm() local [all...] |
H A D | ecdsa.c | 94 static int _ecdsa_verify(struct ecc_ctx *ctx, const u64 *hash, const u64 *r, const u64 *s) in _ecdsa_verify() argument 110 /* hash is given */ in _ecdsa_verify() 111 pr_devel("hash : %016llx %016llx ... %016llx\n", in _ecdsa_verify() 112 hash[ndigits - 1], hash[ndigits - 2], hash[0]); in _ecdsa_verify() 116 /* u1 = (hash * s1) mod n */ in _ecdsa_verify() 117 vli_mod_mult_slow(u1, hash, s1, curve->n, ndigits); in _ecdsa_verify() 146 u64 hash[ECC_MAX_DIGITS]; in ecdsa_verify() local 167 /* if the hash i in ecdsa_verify() [all...] |
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
H A D | nip_fib.c | 89 unsigned int hash; in nip_fib_locate() local 91 /* hash calc ensures that the hash index is valid without memory overruns */ in nip_fib_locate() 92 hash = ninet_route_hash(daddr); in nip_fib_locate() 93 h = &nip_tb_head[hash]; in nip_fib_locate() 101 /* hash calc ensures that the hash index is valid without memory overruns */ in nip_fib_locate() 102 hash = ninet_route_hash(&nip_any_addr); in nip_fib_locate() 103 h = &nip_tb_head[hash]; in nip_fib_locate() 140 unsigned int hash; in nip_fib_add() local [all...] |
/test/xts/device_attest/services/core/utils/ |
H A D | attest_utils.c | 194 unsigned char hash[HASH_LENGTH] = {0}; in Sha256ValueToAscii() local 200 mbedtls_sha256_finish_ret(&context, hash); in Sha256ValueToAscii() 203 if (memcpy_s(dest, destLen, hash, HASH_LENGTH) != 0) { in Sha256ValueToAscii() 207 (void)memset_s(hash, HASH_LENGTH, 0, HASH_LENGTH); in Sha256ValueToAscii() 222 char hash[HASH_LENGTH] = {0}; in Sha256Value() local 224 int32_t ret = Sha256ValueToAscii(src, srcLen, hash, HASH_LENGTH); in Sha256Value() 232 if (sprintf_s(buf, sizeof(buf), "%02X", hash[i]) < 0) { in Sha256Value() 242 (void)memset_s(hash, HASH_LENGTH, 0, HASH_LENGTH); in Sha256Value()
|
/test/xts/device_attest_lite/services/core/utils/ |
H A D | attest_utils.c | 197 unsigned char hash[HASH_LENGTH] = {0}; in Sha256ValueToAscii() local 203 mbedtls_sha256_finish_ret(&context, hash); in Sha256ValueToAscii() 206 if (memcpy_s(dest, destLen, hash, HASH_LENGTH) != 0) { in Sha256ValueToAscii() 210 (void)memset_s(hash, HASH_LENGTH, 0, HASH_LENGTH); in Sha256ValueToAscii() 225 unsigned char hash[HASH_LENGTH] = {0}; in Sha256Value() local 226 int32_t ret = Sha256ValueToAscii(src, srcLen, hash, HASH_LENGTH); in Sha256Value() 234 if (sprintf_s(buf, sizeof(buf), "%02X", hash[i]) < 0) { in Sha256Value() 244 (void)memset_s(hash, HASH_LENGTH, 0, HASH_LENGTH); in Sha256Value()
|
/kernel/linux/linux-5.10/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; in hash_item() local 145 hash ^= addr[i]; in hash_item() 147 hash ^= (__force __u32)sid >> i; in hash_item() 149 hash ^= hash >> i; in hash_item() 151 return hash & PPPOE_HASH_MASK; in hash_item() 162 int hash in __get_item() local 179 int hash = hash_item(po->pppoe_pa.sid, po->pppoe_pa.remote); __set_item() local 200 int hash = hash_item(sid, addr); __delete_item() local 1072 int hash = hash_item(po->pppoe_pa.sid, po->pppoe_pa.remote); pppoe_seq_next() local [all...] |
/kernel/linux/linux-6.6/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-core.c | 308 .alg.hash.base = { 335 .alg.hash.op = { 341 .alg.hash.base = { 368 .alg.hash.op = { 374 .alg.hash.base = { 401 .alg.hash.op = { 407 .alg.hash.base = { 434 .alg.hash.op = { 440 .alg.hash.base = { 468 .alg.hash [all...] |