/linux-6.1.9/net/mac80211/ |
D | michael.c | 13 static void michael_block(struct michael_mic_ctx *mctx, u32 val) in michael_block() argument 15 mctx->l ^= val; in michael_block() 16 mctx->r ^= rol32(mctx->l, 17); in michael_block() 17 mctx->l += mctx->r; in michael_block() 18 mctx->r ^= ((mctx->l & 0xff00ff00) >> 8) | in michael_block() 19 ((mctx->l & 0x00ff00ff) << 8); in michael_block() 20 mctx->l += mctx->r; in michael_block() 21 mctx->r ^= rol32(mctx->l, 3); in michael_block() 22 mctx->l += mctx->r; in michael_block() 23 mctx->r ^= ror32(mctx->l, 2); in michael_block() [all …]
|
/linux-6.1.9/crypto/ |
D | michael_mic.c | 49 struct michael_mic_desc_ctx *mctx = shash_desc_ctx(desc); in michael_init() local 51 mctx->pending_len = 0; in michael_init() 52 mctx->l = ctx->l; in michael_init() 53 mctx->r = ctx->r; in michael_init() 62 struct michael_mic_desc_ctx *mctx = shash_desc_ctx(desc); in michael_update() local 64 if (mctx->pending_len) { in michael_update() 65 int flen = 4 - mctx->pending_len; in michael_update() 68 memcpy((u8 *)&mctx->pending + mctx->pending_len, data, flen); in michael_update() 69 mctx->pending_len += flen; in michael_update() 73 if (mctx->pending_len < 4) in michael_update() [all …]
|
D | md4.c | 141 struct md4_ctx *mctx = shash_desc_ctx(desc); in md4_init() local 143 mctx->hash[0] = 0x67452301; in md4_init() 144 mctx->hash[1] = 0xefcdab89; in md4_init() 145 mctx->hash[2] = 0x98badcfe; in md4_init() 146 mctx->hash[3] = 0x10325476; in md4_init() 147 mctx->byte_count = 0; in md4_init() 154 struct md4_ctx *mctx = shash_desc_ctx(desc); in md4_update() local 155 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md4_update() 157 mctx->byte_count += len; in md4_update() 160 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md4_update() [all …]
|
D | md5.c | 131 struct md5_state *mctx = shash_desc_ctx(desc); in md5_init() local 133 mctx->hash[0] = MD5_H0; in md5_init() 134 mctx->hash[1] = MD5_H1; in md5_init() 135 mctx->hash[2] = MD5_H2; in md5_init() 136 mctx->hash[3] = MD5_H3; in md5_init() 137 mctx->byte_count = 0; in md5_init() 144 struct md5_state *mctx = shash_desc_ctx(desc); in md5_update() local 145 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md5_update() 147 mctx->byte_count += len; in md5_update() 150 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md5_update() [all …]
|
D | crc32c_generic.c | 59 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); in chksum_init() local 62 ctx->crc = mctx->key; in chksum_init() 75 struct chksum_ctx *mctx = crypto_shash_ctx(tfm); in chksum_setkey() local 77 if (keylen != sizeof(mctx->key)) in chksum_setkey() 79 mctx->key = get_unaligned_le32(key); in chksum_setkey() 117 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); in chksum_digest() local 119 return __chksum_finup(&mctx->key, data, length, out); in chksum_digest() 124 struct chksum_ctx *mctx = crypto_tfm_ctx(tfm); in crc32c_cra_init() local 126 mctx->key = ~0; in crc32c_cra_init()
|
D | crc32_generic.c | 39 u32 *mctx = crypto_shash_ctx(hash); in crc32_setkey() local 43 *mctx = get_unaligned_le32(key); in crc32_setkey() 49 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32_init() local 52 *crcp = *mctx; in crc32_init()
|
/linux-6.1.9/arch/mips/cavium-octeon/crypto/ |
D | octeon-md5.c | 69 struct md5_state *mctx = shash_desc_ctx(desc); in octeon_md5_init() local 71 mctx->hash[0] = MD5_H0; in octeon_md5_init() 72 mctx->hash[1] = MD5_H1; in octeon_md5_init() 73 mctx->hash[2] = MD5_H2; in octeon_md5_init() 74 mctx->hash[3] = MD5_H3; in octeon_md5_init() 75 cpu_to_le32_array(mctx->hash, 4); in octeon_md5_init() 76 mctx->byte_count = 0; in octeon_md5_init() 84 struct md5_state *mctx = shash_desc_ctx(desc); in octeon_md5_update() local 85 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in octeon_md5_update() 89 mctx->byte_count += len; in octeon_md5_update() [all …]
|
/linux-6.1.9/fs/smbfs_common/ |
D | cifs_md4.c | 126 int cifs_md4_init(struct md4_ctx *mctx) in cifs_md4_init() argument 128 memset(mctx, 0, sizeof(struct md4_ctx)); in cifs_md4_init() 129 mctx->hash[0] = 0x67452301; in cifs_md4_init() 130 mctx->hash[1] = 0xefcdab89; in cifs_md4_init() 131 mctx->hash[2] = 0x98badcfe; in cifs_md4_init() 132 mctx->hash[3] = 0x10325476; in cifs_md4_init() 133 mctx->byte_count = 0; in cifs_md4_init() 139 int cifs_md4_update(struct md4_ctx *mctx, const u8 *data, unsigned int len) in cifs_md4_update() argument 141 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in cifs_md4_update() 143 mctx->byte_count += len; in cifs_md4_update() [all …]
|
D | md4.h | 23 int cifs_md4_init(struct md4_ctx *mctx); 24 int cifs_md4_update(struct md4_ctx *mctx, const u8 *data, unsigned int len); 25 int cifs_md4_final(struct md4_ctx *mctx, u8 *out);
|
/linux-6.1.9/scripts/mod/ |
D | sumversion.c | 160 static void md4_init(struct md4_ctx *mctx) in md4_init() argument 162 mctx->hash[0] = 0x67452301; in md4_init() 163 mctx->hash[1] = 0xefcdab89; in md4_init() 164 mctx->hash[2] = 0x98badcfe; in md4_init() 165 mctx->hash[3] = 0x10325476; in md4_init() 166 mctx->byte_count = 0; in md4_init() 169 static void md4_update(struct md4_ctx *mctx, in md4_update() argument 172 const uint32_t avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md4_update() 174 mctx->byte_count += len; in md4_update() 177 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md4_update() [all …]
|
/linux-6.1.9/arch/powerpc/perf/ |
D | callchain_32.c | 44 struct mcontext32 mctx; member 60 if (nip == fp + offsetof(struct signal_frame_32, mctx.mc_pad)) in is_sigreturn_32_address() 87 return regs == (unsigned long) &sf->mctx; in sane_signal_32_frame() 104 struct mcontext32 __user *mctx = NULL; in signal_frame_32_regs() local 118 mctx = &sf->mctx; in signal_frame_32_regs() 121 if (!mctx && next_sp - sp >= sizeof(struct rt_signal_frame_32) && in signal_frame_32_regs() 125 mctx = &rt_sf->uc.uc_mcontext; in signal_frame_32_regs() 128 if (!mctx) in signal_frame_32_regs() 130 return mctx->mc_gregs; in signal_frame_32_regs()
|
/linux-6.1.9/arch/s390/crypto/ |
D | crc32-vx.c | 86 struct crc_ctx *mctx = crypto_tfm_ctx(tfm); in DEFINE_CRC32_VX() local 88 mctx->key = 0; in DEFINE_CRC32_VX() 94 struct crc_ctx *mctx = crypto_tfm_ctx(tfm); in crc32_vx_cra_init_invert() local 96 mctx->key = ~0; in crc32_vx_cra_init_invert() 102 struct crc_ctx *mctx = crypto_shash_ctx(desc->tfm); in crc32_vx_init() local 105 ctx->crc = mctx->key; in crc32_vx_init() 112 struct crc_ctx *mctx = crypto_shash_ctx(tfm); in crc32_vx_setkey() local 114 if (newkeylen != sizeof(mctx->key)) in crc32_vx_setkey() 116 mctx->key = le32_to_cpu(*(__le32 *)newkey); in crc32_vx_setkey() 123 struct crc_ctx *mctx = crypto_shash_ctx(tfm); in crc32be_vx_setkey() local [all …]
|
/linux-6.1.9/drivers/crypto/stm32/ |
D | stm32-crc32.c | 74 struct stm32_crc_ctx *mctx = crypto_tfm_ctx(tfm); in stm32_crc32_cra_init() local 76 mctx->key = 0; in stm32_crc32_cra_init() 77 mctx->poly = CRC32_POLY_LE; in stm32_crc32_cra_init() 83 struct stm32_crc_ctx *mctx = crypto_tfm_ctx(tfm); in stm32_crc32c_cra_init() local 85 mctx->key = CRC32C_INIT_DEFAULT; in stm32_crc32c_cra_init() 86 mctx->poly = CRC32C_POLY_LE; in stm32_crc32c_cra_init() 93 struct stm32_crc_ctx *mctx = crypto_shash_ctx(tfm); in stm32_crc_setkey() local 98 mctx->key = get_unaligned_le32(key); in stm32_crc_setkey() 118 struct stm32_crc_ctx *mctx = crypto_shash_ctx(desc->tfm); in stm32_crc_init() local 131 writel_relaxed(bitrev32(mctx->key), crc->regs + CRC_INIT); in stm32_crc_init() [all …]
|
/linux-6.1.9/arch/mips/crypto/ |
D | crc32-mips.c | 168 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); local 171 ctx->crc = mctx->key; 184 struct chksum_ctx *mctx = crypto_shash_ctx(tfm); local 186 if (keylen != sizeof(mctx->key)) 188 mctx->key = get_unaligned_le32(key); 257 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); local 259 return __chksum_finup(mctx->key, data, length, out); 265 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); local 267 return __chksumc_finup(mctx->key, data, length, out); 272 struct chksum_ctx *mctx = crypto_tfm_ctx(tfm); local [all …]
|
/linux-6.1.9/arch/sparc/crypto/ |
D | md5_glue.c | 34 struct md5_state *mctx = shash_desc_ctx(desc); in md5_sparc64_init() local 36 mctx->hash[0] = MD5_H0; in md5_sparc64_init() 37 mctx->hash[1] = MD5_H1; in md5_sparc64_init() 38 mctx->hash[2] = MD5_H2; in md5_sparc64_init() 39 mctx->hash[3] = MD5_H3; in md5_sparc64_init() 40 le32_to_cpu_array(mctx->hash, 4); in md5_sparc64_init() 41 mctx->byte_count = 0; in md5_sparc64_init()
|
D | crc32c_glue.c | 34 u32 *mctx = crypto_shash_ctx(hash); in crc32c_sparc64_setkey() local 38 *mctx = le32_to_cpup((__le32 *)key); in crc32c_sparc64_setkey() 44 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32c_sparc64_init() local 47 *crcp = *mctx; in crc32c_sparc64_init()
|
/linux-6.1.9/fs/cifs/ |
D | smbencrypt.c | 46 struct md4_ctx mctx; in mdfour() local 48 rc = cifs_md4_init(&mctx); in mdfour() 53 rc = cifs_md4_update(&mctx, link_str, link_len); in mdfour() 58 rc = cifs_md4_final(&mctx, md4_hash); in mdfour()
|
/linux-6.1.9/arch/powerpc/kernel/ |
D | signal_32.c | 196 struct mcontext mctx; /* all the register values */ member 737 struct mcontext __user *mctx; in handle_rt_signal32() local 747 mctx = &frame->uc.uc_mcontext; in handle_rt_signal32() 775 unsafe_save_tm_user_regs(regs, mctx, tm_mctx, msr, failed); in handle_rt_signal32() 778 unsafe_save_user_regs(regs, mctx, tm_mctx, 1, failed); in handle_rt_signal32() 785 tramp = (unsigned long)mctx->mc_pad; in handle_rt_signal32() 786 unsafe_put_user(PPC_RAW_LI(_R0, __NR_rt_sigreturn), &mctx->mc_pad[0], failed); in handle_rt_signal32() 787 unsafe_put_user(PPC_RAW_SC(), &mctx->mc_pad[1], failed); in handle_rt_signal32() 788 asm("dcbst %y0; sync; icbi %y0; sync" :: "Z" (mctx->mc_pad[0])); in handle_rt_signal32() 837 struct mcontext __user *mctx; in handle_signal32() local [all …]
|
/linux-6.1.9/drivers/ufs/core/ |
D | ufshpb.c | 173 bitmap_set(srgn->mctx->ppn_dirty, srgn_offset, in ufshpb_iterate_rgn() 249 if (unlikely(!srgn->mctx)) { in ufshpb_test_ppn_dirty() 261 if (find_next_bit(srgn->mctx->ppn_dirty, bit_len + srgn_offset, in ufshpb_test_ppn_dirty() 284 struct ufshpb_map_ctx *mctx, int pos, in ufshpb_fill_ppn_from_page() argument 299 page = mctx->m_page[index]; in ufshpb_fill_ppn_from_page() 417 err = ufshpb_fill_ppn_from_page(hpb, srgn->mctx, srgn_offset, 1, &ppn); in ufshpb_prep() 505 map_req->rb.mctx = srgn->mctx; in ufshpb_get_map_req() 533 if (!srgn->mctx) { in ufshpb_clear_dirty_bitmap() 543 bitmap_zero(srgn->mctx->ppn_dirty, num_entries); in ufshpb_clear_dirty_bitmap() 596 if (!srgn->mctx) { in ufshpb_activate_subregion() [all …]
|
D | ufshpb.h | 103 struct ufshpb_map_ctx *mctx; member 168 struct ufshpb_map_ctx *mctx; member
|
/linux-6.1.9/arch/powerpc/crypto/ |
D | crc32c-vpmsum_glue.c | 74 u32 *mctx = crypto_shash_ctx(hash); in crc32c_vpmsum_setkey() local 78 *mctx = le32_to_cpup((__le32 *)key); in crc32c_vpmsum_setkey() 84 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32c_vpmsum_init() local 87 *crcp = *mctx; in crc32c_vpmsum_init()
|
/linux-6.1.9/arch/x86/crypto/ |
D | crc32-pclmul_glue.c | 95 u32 *mctx = crypto_shash_ctx(hash); in crc32_pclmul_setkey() local 99 *mctx = le32_to_cpup((__le32 *)key); in crc32_pclmul_setkey() 105 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32_pclmul_init() local 108 *crcp = *mctx; in crc32_pclmul_init()
|
D | crc32c-intel_glue.c | 86 u32 *mctx = crypto_shash_ctx(hash); in crc32c_intel_setkey() local 90 *mctx = le32_to_cpup((__le32 *)key); in crc32c_intel_setkey() 96 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32c_intel_init() local 99 *crcp = *mctx; in crc32c_intel_init()
|
/linux-6.1.9/arch/arm/crypto/ |
D | crc32-ce-glue.c | 55 u32 *mctx = crypto_shash_ctx(hash); in crc32_setkey() local 59 *mctx = le32_to_cpup((__le32 *)key); in crc32_setkey() 65 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32_init() local 68 *crc = *mctx; in crc32_init()
|
/linux-6.1.9/arch/arc/kernel/ |
D | signal.c | 64 static int save_arcv2_regs(struct sigcontext *mctx, struct pt_regs *regs) in save_arcv2_regs() argument 77 err = __copy_to_user(&mctx->v2abi, &v2abi, sizeof(v2abi)); in save_arcv2_regs() 82 static int restore_arcv2_regs(struct sigcontext *mctx, struct pt_regs *regs) in restore_arcv2_regs() argument 88 err = __copy_from_user(&v2abi, &mctx->v2abi, sizeof(v2abi)); in restore_arcv2_regs()
|