Home
last modified time | relevance | path

Searched refs:hash (Results 1 – 25 of 92) sorted by relevance

1234

/arch/mips/cavium-octeon/crypto/
A Docteon-md5.c32 __le32 hash[MD5_HASH_WORDS]; member
42 u64 *hash = (u64 *)ctx->hash; in octeon_md5_store_hash() local
44 write_octeon_64bit_hash_dword(hash[0], 0); in octeon_md5_store_hash()
45 write_octeon_64bit_hash_dword(hash[1], 1); in octeon_md5_store_hash()
50 u64 *hash = (u64 *)ctx->hash; in octeon_md5_read_hash() local
52 hash[0] = read_octeon_64bit_hash_dword(0); in octeon_md5_read_hash()
74 mctx->hash[0] = cpu_to_le32(MD5_H0); in octeon_md5_init()
75 mctx->hash[1] = cpu_to_le32(MD5_H1); in octeon_md5_init()
76 mctx->hash[2] = cpu_to_le32(MD5_H2); in octeon_md5_init()
77 mctx->hash[3] = cpu_to_le32(MD5_H3); in octeon_md5_init()
[all …]
/arch/loongarch/kernel/
A Drelocate.c91 const typeof(hash) *ptr = PTR_ALIGN(area, sizeof(hash)); in rotate_xor()
94 if (size < diff + sizeof(hash)) in rotate_xor()
95 return hash; in rotate_xor()
99 for (i = 0; i < size / sizeof(hash); i++) { in rotate_xor()
101 hash = (hash << ((sizeof(hash) * 8) - 7)) | (hash >> 7); in rotate_xor()
102 hash ^= ptr[i]; in rotate_xor()
105 return hash; in rotate_xor()
110 unsigned long hash = 0; in get_random_boot() local
114 hash = rotate_xor(hash, linux_banner, strlen(linux_banner)); in get_random_boot()
117 hash = rotate_xor(hash, &entropy, sizeof(entropy)); in get_random_boot()
[all …]
/arch/powerpc/crypto/
A Daes-gcm-p10-glue.c86 *(u64 *)&hash[0] = be64_to_cpup((__be64 *)&hash[0]); in set_subkey()
87 *(u64 *)&hash[8] = be64_to_cpup((__be64 *)&hash[8]); in set_subkey()
125 aes_p10_encrypt(hash->H, hash->H, rdkey); in gcmp10_init()
126 set_subkey(hash->H); in gcmp10_init()
127 gcm_init_htable(hash->Htable+32, hash->H); in gcmp10_init()
145 set_aad(gctx, hash, assoc, assoclen); in gcmp10_init()
157 memcpy(hash->Htable, gctx->ivtag, 16); in finish_tag()
170 gcm_ghash_p10(hash->Htable, hash->Htable+32, aclen, 16); in finish_tag()
173 hash->Htable[i] ^= gctx->ivtag[i]; in finish_tag()
293 gcm_update(gctx->iv, hash->Htable); in p10_aes_gcm_crypt()
[all …]
A Dmd5-glue.c22 sctx->hash[0] = MD5_H0; in ppc_md5_init()
23 sctx->hash[1] = MD5_H1; in ppc_md5_init()
24 sctx->hash[2] = MD5_H2; in ppc_md5_init()
25 sctx->hash[3] = MD5_H3; in ppc_md5_init()
37 ppc_md5_transform(sctx->hash, data, len >> 6); in ppc_md5_update()
56 ppc_md5_transform(sctx->hash, src, (pbits - block + 1) / 8); in ppc_md5_finup()
59 dst[0] = cpu_to_le32(sctx->hash[0]); in ppc_md5_finup()
60 dst[1] = cpu_to_le32(sctx->hash[1]); in ppc_md5_finup()
61 dst[2] = cpu_to_le32(sctx->hash[2]); in ppc_md5_finup()
62 dst[3] = cpu_to_le32(sctx->hash[3]); in ppc_md5_finup()
/arch/mips/kernel/
A Drelocate.c197 const typeof(hash) *ptr = PTR_ALIGN(area, sizeof(hash)); in rotate_xor()
201 if (unlikely(size < diff + sizeof(hash))) in rotate_xor()
202 return hash; in rotate_xor()
208 hash = (hash << ((sizeof(hash) * 8) - 7)) | (hash >> 7); in rotate_xor()
209 hash ^= ptr[i]; in rotate_xor()
212 return hash; in rotate_xor()
218 unsigned long hash = 0; in get_random_boot() local
221 hash = rotate_xor(hash, linux_banner, strlen(linux_banner)); in get_random_boot()
224 hash = rotate_xor(hash, &entropy, sizeof(entropy)); in get_random_boot()
237 hash = rotate_xor(hash, prop, sizeof(*prop)); in get_random_boot()
[all …]
/arch/sparc/crypto/
A Dmd5_glue.c29 __le32 hash[MD5_HASH_WORDS]; member
40 mctx->hash[0] = cpu_to_le32(MD5_H0); in md5_sparc64_init()
41 mctx->hash[1] = cpu_to_le32(MD5_H1); in md5_sparc64_init()
42 mctx->hash[2] = cpu_to_le32(MD5_H2); in md5_sparc64_init()
43 mctx->hash[3] = cpu_to_le32(MD5_H3); in md5_sparc64_init()
55 md5_sparc64_transform(sctx->hash, data, len / MD5_HMAC_BLOCK_SIZE); in md5_sparc64_update()
76 md5_sparc64_transform(sctx->hash, src, (pbits - block + 1) / 8); in md5_sparc64_finup()
81 dst[i] = sctx->hash[i]; in md5_sparc64_finup()
97 put_unaligned(le32_to_cpu(sctx->hash[i]), p.u32++); in md5_sparc64_export()
113 sctx->hash[i] = cpu_to_le32(get_unaligned(p.u32++)); in md5_sparc64_import()
/arch/powerpc/mm/book3s64/
A Dhash_hugepage.c30 unsigned long vpn, hash, shift, slot; in __hash_page_thp() local
102 hash = hpt_hash(vpn, shift, ssize); in __hash_page_thp()
105 hash = ~hash; in __hash_page_thp()
106 slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; in __hash_page_thp()
128 hash = hpt_hash(vpn, shift, ssize); in __hash_page_thp()
134 hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP; in __hash_page_thp()
143 hpte_group = (~hash & htab_hash_mask) * HPTES_PER_GROUP; in __hash_page_thp()
150 hpte_group = (hash & htab_hash_mask) * in __hash_page_thp()
A Dhash_64k.c47 unsigned long vpn, hash, slot, gslot; in __hash_page_4K() local
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()
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 = hpt_hash(vpn, shift, ssize); in __hash_page_64K()
295 hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP; in __hash_page_64K()
305 hpte_group = (~hash & htab_hash_mask) * HPTES_PER_GROUP; in __hash_page_64K()
313 hpte_group = (hash & htab_hash_mask) * in __hash_page_64K()
A Dhash_4k.c29 unsigned long vpn, hash, slot; in __hash_page_4K() local
82 hash = hpt_hash(vpn, shift, ssize); in __hash_page_4K()
85 hpte_group = (hash & htab_hash_mask) * HPTES_PER_GROUP; in __hash_page_4K()
94 hpte_group = (~hash & htab_hash_mask) * HPTES_PER_GROUP; in __hash_page_4K()
102 hpte_group = (hash & htab_hash_mask) * in __hash_page_4K()
/arch/powerpc/mm/nohash/
A Dkaslr_booke.c45 static unsigned long __init 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()
66 unsigned long hash = 0; in get_boot_seed() local
69 hash = rotate_xor(hash, linux_banner, strlen(linux_banner)); in get_boot_seed()
70 hash = rotate_xor(hash, fdt, fdt_totalsize(fdt)); in get_boot_seed()
72 return hash; in get_boot_seed()
/arch/x86/um/vdso/
A Dvdso-layout.lds.S12 .hash : { *(.hash) } :text
13 .gnu.hash : { *(.gnu.hash) }
/arch/arm/vdso/
A Dvdso.lds.S27 .hash : { *(.hash) } :text
28 .gnu.hash : { *(.gnu.hash) }
/arch/csky/kernel/vdso/
A Dvdso.lds.S12 .hash : { *(.hash) } :text
13 .gnu.hash : { *(.gnu.hash) }
/arch/sh/kernel/vsyscall/
A Dvsyscall.lds.S23 .hash : { *(.hash) } :text
24 .gnu.hash : { *(.gnu.hash) }
/arch/arm64/kernel/vdso32/
A Dvdso.lds.S26 .hash : { *(.hash) } :text
27 .gnu.hash : { *(.gnu.hash) }
/arch/loongarch/vdso/
A Dvdso.lds.S20 .hash : { *(.hash) } :text
21 .gnu.hash : { *(.gnu.hash) }
/arch/sparc/vdso/
A Dvdso-layout.lds.S31 .hash : { *(.hash) } :text
32 .gnu.hash : { *(.gnu.hash) }
/arch/riscv/kernel/vdso/
A Dvdso.lds.S17 .hash : { *(.hash) } :text
18 .gnu.hash : { *(.gnu.hash) }
/arch/x86/entry/vdso/
A Dvdso-layout.lds.S29 .hash : { *(.hash) } :text
30 .gnu.hash : { *(.gnu.hash) }
/arch/arm64/kernel/vdso/
A Dvdso.lds.S27 .hash : { *(.hash) } :text
28 .gnu.hash : { *(.gnu.hash) }
/arch/mips/vdso/
A Dvdso.lds.S38 .hash : { *(.hash) } :text
39 .gnu.hash : { *(.gnu.hash) }
/arch/powerpc/kernel/vdso/
A Dvdso64.lds.S24 .hash : { *(.hash) } :text
25 .gnu.hash : { *(.gnu.hash) }
A Dvdso32.lds.S24 .hash : { *(.hash) } :text
25 .gnu.hash : { *(.gnu.hash) }
/arch/parisc/kernel/vdso32/
A Dvdso32.lds.S16 .hash : { *(.hash) } :text
17 .gnu.hash : { *(.gnu.hash) }
/arch/parisc/kernel/vdso64/
A Dvdso64.lds.S15 .hash : { *(.hash) } :text
16 .gnu.hash : { *(.gnu.hash) }

Completed in 38 milliseconds

1234