Home
last modified time | relevance | path

Searched refs:mctx (Results 1 – 25 of 27) sorted by relevance

12

/linux/net/mac80211/
A Dmichael.c15 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 Dmichael_mic.c51 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 Dmd4.c155 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 Dmd5.c145 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 Dcrc32c_generic.c59 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 Dcrc32_generic.c39 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 Docteon-md5.c71 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 Dcifs_md4.c141 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 Dmd4.h23 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 Dsumversion.c166 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 Dcallchain_32.c44 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 Dcrc32-vx.c86 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 Dstm32-crc32.c74 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 Dcrc32-mips.c162 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 Dmd5_glue.c34 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 Dcrc32c_glue.c34 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 Dsignal_32.c196 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 Dsmbencrypt.c46 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 Dufshpb.c507 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 Dufshpb.h103 struct ufshpb_map_ctx *mctx; member
168 struct ufshpb_map_ctx *mctx; member
/linux/arch/x86/crypto/
A Dcrc32-pclmul_glue.c95 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 Dcrc32c-intel_glue.c86 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 Dcrc32c-vpmsum_glue.c74 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 Dcrc32-ce-glue.c55 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 Dsignal.c64 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()

Completed in 31 milliseconds

12