| /arch/mips/cavium-octeon/crypto/ |
| A D | octeon-md5.c | 32 __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 D | relocate.c | 91 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 D | aes-gcm-p10-glue.c | 86 *(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 D | md5-glue.c | 22 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 D | relocate.c | 197 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 D | md5_glue.c | 29 __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 D | hash_hugepage.c | 30 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 D | hash_64k.c | 47 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 D | hash_4k.c | 29 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 D | kaslr_booke.c | 45 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 D | vdso-layout.lds.S | 12 .hash : { *(.hash) } :text 13 .gnu.hash : { *(.gnu.hash) }
|
| /arch/arm/vdso/ |
| A D | vdso.lds.S | 27 .hash : { *(.hash) } :text 28 .gnu.hash : { *(.gnu.hash) }
|
| /arch/csky/kernel/vdso/ |
| A D | vdso.lds.S | 12 .hash : { *(.hash) } :text 13 .gnu.hash : { *(.gnu.hash) }
|
| /arch/sh/kernel/vsyscall/ |
| A D | vsyscall.lds.S | 23 .hash : { *(.hash) } :text 24 .gnu.hash : { *(.gnu.hash) }
|
| /arch/arm64/kernel/vdso32/ |
| A D | vdso.lds.S | 26 .hash : { *(.hash) } :text 27 .gnu.hash : { *(.gnu.hash) }
|
| /arch/loongarch/vdso/ |
| A D | vdso.lds.S | 20 .hash : { *(.hash) } :text 21 .gnu.hash : { *(.gnu.hash) }
|
| /arch/sparc/vdso/ |
| A D | vdso-layout.lds.S | 31 .hash : { *(.hash) } :text 32 .gnu.hash : { *(.gnu.hash) }
|
| /arch/riscv/kernel/vdso/ |
| A D | vdso.lds.S | 17 .hash : { *(.hash) } :text 18 .gnu.hash : { *(.gnu.hash) }
|
| /arch/x86/entry/vdso/ |
| A D | vdso-layout.lds.S | 29 .hash : { *(.hash) } :text 30 .gnu.hash : { *(.gnu.hash) }
|
| /arch/arm64/kernel/vdso/ |
| A D | vdso.lds.S | 27 .hash : { *(.hash) } :text 28 .gnu.hash : { *(.gnu.hash) }
|
| /arch/mips/vdso/ |
| A D | vdso.lds.S | 38 .hash : { *(.hash) } :text 39 .gnu.hash : { *(.gnu.hash) }
|
| /arch/powerpc/kernel/vdso/ |
| A D | vdso64.lds.S | 24 .hash : { *(.hash) } :text 25 .gnu.hash : { *(.gnu.hash) }
|
| A D | vdso32.lds.S | 24 .hash : { *(.hash) } :text 25 .gnu.hash : { *(.gnu.hash) }
|
| /arch/parisc/kernel/vdso32/ |
| A D | vdso32.lds.S | 16 .hash : { *(.hash) } :text 17 .gnu.hash : { *(.gnu.hash) }
|
| /arch/parisc/kernel/vdso64/ |
| A D | vdso64.lds.S | 15 .hash : { *(.hash) } :text 16 .gnu.hash : { *(.gnu.hash) }
|