/linux/net/mac80211/ |
A D | michael.c | 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() 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() 24 mctx->l += mctx->r; in michael_block() 50 michael_block(mctx, tid); in michael_mic_hdr() [all …]
|
/linux/crypto/ |
A D | michael_mic.c | 51 mctx->pending_len = 0; in michael_init() 52 mctx->l = ctx->l; in michael_init() 53 mctx->r = ctx->r; in michael_init() 68 memcpy((u8 *)&mctx->pending + mctx->pending_len, data, flen); in michael_update() 76 mctx->l ^= le32_to_cpu(mctx->pending); in michael_update() 77 michael_block(mctx->l, mctx->r); in michael_update() 78 mctx->pending_len = 0; in michael_update() 83 michael_block(mctx->l, mctx->r); in michael_update() 105 mctx->l ^= 0x5a; in michael_final() 118 michael_block(mctx->l, mctx->r); in michael_final() [all …]
|
A D | md4.c | 155 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md4_update() 160 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md4_update() 165 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md4_update() 173 memcpy(mctx->block, data, sizeof(mctx->block)); in md4_update() 200 mctx->block[14] = mctx->byte_count << 3; in md4_final() 201 mctx->block[15] = mctx->byte_count >> 29; in md4_final() 202 le32_to_cpu_array(mctx->block, (sizeof(mctx->block) - in md4_final() 204 md4_transform(mctx->hash, mctx->block); in md4_final() 205 cpu_to_le32_array(mctx->hash, ARRAY_SIZE(mctx->hash)); in md4_final() 206 memcpy(out, mctx->hash, sizeof(mctx->hash)); in md4_final() [all …]
|
A D | md5.c | 145 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md5_update() 150 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md5_update() 155 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md5_update() 163 memcpy(mctx->block, data, sizeof(mctx->block)); in md5_update() 190 mctx->block[14] = mctx->byte_count << 3; in md5_final() 191 mctx->block[15] = mctx->byte_count >> 29; in md5_final() 192 le32_to_cpu_array(mctx->block, (sizeof(mctx->block) - in md5_final() 194 md5_transform(mctx->hash, mctx->block); in md5_final() 195 cpu_to_le32_array(mctx->hash, sizeof(mctx->hash) / sizeof(u32)); in md5_final() 196 memcpy(out, mctx->hash, sizeof(mctx->hash)); in md5_final() [all …]
|
A 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()
|
A 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/arch/mips/cavium-octeon/crypto/ |
A D | octeon-md5.c | 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() 76 mctx->byte_count = 0; in octeon_md5_init() 85 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in octeon_md5_update() 92 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in octeon_md5_update() 97 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), data, in octeon_md5_update() 143 mctx->block[14] = mctx->byte_count << 3; in octeon_md5_final() 144 mctx->block[15] = mctx->byte_count >> 29; in octeon_md5_final() 151 memcpy(out, mctx->hash, sizeof(mctx->hash)); in octeon_md5_final() [all …]
|
/linux/fs/smbfs_common/ |
A D | cifs_md4.c | 141 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in cifs_md4_update() 146 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in cifs_md4_update() 151 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in cifs_md4_update() 159 memcpy(mctx->block, data, sizeof(mctx->block)); in cifs_md4_update() 186 mctx->block[14] = mctx->byte_count << 3; in cifs_md4_final() 187 mctx->block[15] = mctx->byte_count >> 29; in cifs_md4_final() 188 le32_to_cpu_array(mctx->block, (sizeof(mctx->block) - in cifs_md4_final() 190 md4_transform(mctx->hash, mctx->block); in cifs_md4_final() 191 cpu_to_le32_array(mctx->hash, ARRAY_SIZE(mctx->hash)); in cifs_md4_final() 192 memcpy(out, mctx->hash, sizeof(mctx->hash)); in cifs_md4_final() [all …]
|
A 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/scripts/mod/ |
A D | sumversion.c | 166 mctx->byte_count = 0; in md4_init() 172 const uint32_t avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md4_update() 177 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md4_update() 182 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md4_update() 190 memcpy(mctx->block, data, sizeof(mctx->block)); in md4_update() 214 mctx->block[14] = mctx->byte_count << 3; in md4_final_ascii() 215 mctx->block[15] = mctx->byte_count >> 29; in md4_final_ascii() 216 le32_to_cpu_array(mctx->block, (sizeof(mctx->block) - in md4_final_ascii() 218 md4_transform(mctx->hash, mctx->block); in md4_final_ascii() 219 cpu_to_le32_array(mctx->hash, sizeof(mctx->hash) / sizeof(uint32_t)); in md4_final_ascii() [all …]
|
/linux/arch/powerpc/perf/ |
A 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/arch/s390/crypto/ |
A 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() 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 125 if (newkeylen != sizeof(mctx->key)) in crc32be_vx_setkey() [all …]
|
/linux/drivers/crypto/stm32/ |
A 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 162 if (mctx->poly == CRC32_POLY_LE) in burst_update() [all …]
|
/linux/arch/mips/crypto/ |
A D | crc32-mips.c | 162 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); local 165 ctx->crc = mctx->key; 178 struct chksum_ctx *mctx = crypto_shash_ctx(tfm); local 180 if (keylen != sizeof(mctx->key)) 182 mctx->key = get_unaligned_le32(key); 251 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); local 253 return __chksum_finup(mctx->key, data, length, out); 259 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); local 261 return __chksumc_finup(mctx->key, data, length, out); 266 struct chksum_ctx *mctx = crypto_tfm_ctx(tfm); local [all …]
|
/linux/arch/sparc/crypto/ |
A 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()
|
A 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/arch/powerpc/kernel/ |
A D | signal_32.c | 196 struct mcontext mctx; /* all the register values */ member 727 struct mcontext __user *mctx; in handle_rt_signal32() local 737 mctx = &frame->uc.uc_mcontext; in handle_rt_signal32() 775 tramp = (unsigned long)mctx->mc_pad; in handle_rt_signal32() 827 struct mcontext __user *mctx; in handle_signal32() local 837 mctx = &frame->mctx; in handle_signal32() 860 unsafe_put_user(to_user_ptr(mctx), &sc->regs, failed); in handle_signal32() 871 tramp = (unsigned long)mctx->mc_pad; in handle_signal32() 1029 struct mcontext __user *mctx; in COMPAT_SYSCALL_DEFINE3() local 1038 mctx = (struct mcontext __user *) in COMPAT_SYSCALL_DEFINE3() [all …]
|
/linux/fs/cifs/ |
A 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/drivers/scsi/ufs/ |
A D | ufshpb.c | 507 map_req->rb.mctx = srgn->mctx; in ufshpb_get_map_req() 535 if (!srgn->mctx) { in ufshpb_clear_dirty_bitmap() 598 if (!srgn->mctx) { in ufshpb_activate_subregion() 736 if (!mctx) in ufshpb_get_map_ctx() 740 if (!mctx->m_page) in ufshpb_get_map_ctx() 747 if (!mctx->ppn_dirty) in ufshpb_get_map_ctx() 752 if (!mctx->m_page[i]) { in ufshpb_get_map_ctx() 760 return mctx; in ufshpb_get_map_ctx() 911 srgn->mctx = NULL; in ufshpb_purge_active_subregion() 1037 if (!srgn->mctx) { in ufshpb_issue_map_req() [all …]
|
A D | ufshpb.h | 103 struct ufshpb_map_ctx *mctx; member 168 struct ufshpb_map_ctx *mctx; member
|
/linux/arch/x86/crypto/ |
A 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()
|
A 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/arch/powerpc/crypto/ |
A 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/arch/arm/crypto/ |
A 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/arch/arc/kernel/ |
A 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()
|