/kernel/linux/linux-6.6/arch/mips/cavium-octeon/crypto/ |
H A 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 in octeon_md5_update() 123 struct md5_state *mctx = shash_desc_ctx(desc); octeon_md5_final() local [all...] |
/kernel/linux/linux-5.10/net/mac80211/ |
H A 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 in michael_block() 27 michael_mic_hdr(struct michael_mic_ctx *mctx, const u8 *key, struct ieee80211_hdr *hdr) michael_mic_hdr() argument 58 struct michael_mic_ctx mctx; michael_mic() local [all...] |
/kernel/linux/linux-6.6/net/mac80211/ |
H A 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 in michael_block() 27 michael_mic_hdr(struct michael_mic_ctx *mctx, const u8 *key, struct ieee80211_hdr *hdr) michael_mic_hdr() argument 58 struct michael_mic_ctx mctx; michael_mic() local [all...] |
/kernel/linux/linux-5.10/crypto/ |
H A 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 in michael_update() 99 struct michael_mic_desc_ctx *mctx = shash_desc_ctx(desc); michael_final() local 132 struct michael_mic_ctx *mctx = crypto_shash_ctx(tfm); michael_setkey() local [all...] |
H A 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 in md4_update() 186 struct md4_ctx *mctx = shash_desc_ctx(desc); md4_final() local [all...] |
H A 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 in md5_update() 176 struct md5_state *mctx = shash_desc_ctx(desc); md5_final() local [all...] |
H 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()
|
/kernel/linux/linux-5.10/arch/mips/cavium-octeon/crypto/ |
H A D | octeon-md5.c | 69 struct md5_state *mctx = shash_desc_ctx(desc); in octeon_md5_init() local 71 mctx->hash[0] = cpu_to_le32(MD5_H0); in octeon_md5_init() 72 mctx->hash[1] = cpu_to_le32(MD5_H1); in octeon_md5_init() 73 mctx->hash[2] = cpu_to_le32(MD5_H2); in octeon_md5_init() 74 mctx->hash[3] = cpu_to_le32(MD5_H3); in octeon_md5_init() 75 mctx->byte_count = 0; in octeon_md5_init() 83 struct md5_state *mctx = shash_desc_ctx(desc); in octeon_md5_update() local 84 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in octeon_md5_update() 88 mctx in octeon_md5_update() 122 struct md5_state *mctx = shash_desc_ctx(desc); octeon_md5_final() local [all...] |
/kernel/linux/linux-6.6/crypto/ |
H A 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 in michael_update() 99 struct michael_mic_desc_ctx *mctx = shash_desc_ctx(desc); michael_final() local 132 struct michael_mic_ctx *mctx = crypto_shash_ctx(tfm); michael_setkey() local [all...] |
H A 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 in md4_update() 186 struct md4_ctx *mctx = shash_desc_ctx(desc); md4_final() local [all...] |
H A 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 in md5_update() 176 struct md5_state *mctx = shash_desc_ctx(desc); md5_final() local [all...] |
H 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()
|
/kernel/linux/linux-6.6/fs/smb/common/ |
H A 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 in cifs_md4_update() 171 cifs_md4_final(struct md4_ctx *mctx, u8 *out) cifs_md4_final() argument [all...] |
/kernel/linux/linux-5.10/scripts/mod/ |
H A 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 in md4_update() 199 md4_final_ascii(struct md4_ctx *mctx, char *out, unsigned int len) md4_final_ascii() argument [all...] |
/kernel/linux/linux-6.6/scripts/mod/ |
H A 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 in md4_update() 199 md4_final_ascii(struct md4_ctx *mctx, char *out, unsigned int len) md4_final_ascii() argument [all...] |
/kernel/linux/linux-5.10/arch/powerpc/perf/ |
H 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 in signal_frame_32_regs() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/perf/ |
H 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 in signal_frame_32_regs() [all...] |
/kernel/linux/linux-5.10/arch/loongarch/crypto/ |
H A D | crc32-loongarch.c | 115 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); in chksum_init() local 118 ctx->crc = mctx->key; in chksum_init() 129 struct chksum_ctx *mctx = crypto_shash_ctx(tfm); in chksum_setkey() local 131 if (keylen != sizeof(mctx->key)) in chksum_setkey() 134 mctx->key = get_unaligned_le32(key); in chksum_setkey() 199 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); in chksum_digest() local 201 return __chksum_finup(mctx->key, data, length, out); in chksum_digest() 206 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); in chksumc_digest() local 208 return __chksumc_finup(mctx->key, data, length, out); in chksumc_digest() 213 struct chksum_ctx *mctx in chksum_cra_init() local 221 struct chksum_ctx *mctx = crypto_tfm_ctx(tfm); chksumc_cra_init() local [all...] |
/kernel/linux/linux-6.6/arch/loongarch/crypto/ |
H A D | crc32-loongarch.c | 115 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); in chksum_init() local 118 ctx->crc = mctx->key; in chksum_init() 129 struct chksum_ctx *mctx = crypto_shash_ctx(tfm); in chksum_setkey() local 131 if (keylen != sizeof(mctx->key)) in chksum_setkey() 134 mctx->key = get_unaligned_le32(key); in chksum_setkey() 199 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); in chksum_digest() local 201 return __chksum_finup(mctx->key, data, length, out); in chksum_digest() 206 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); in chksumc_digest() local 208 return __chksumc_finup(mctx->key, data, length, out); in chksumc_digest() 213 struct chksum_ctx *mctx in chksum_cra_init() local 221 struct chksum_ctx *mctx = crypto_tfm_ctx(tfm); chksumc_cra_init() local [all...] |
/kernel/linux/linux-5.10/arch/s390/crypto/ |
H A D | crc32-vx.c | 86 struct crc_ctx *mctx = crypto_tfm_ctx(tfm); in crc32_vx_cra_init_zero() local 88 mctx->key = 0; in crc32_vx_cra_init_zero() 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 in crc32be_vx_setkey() local [all...] |
/kernel/linux/linux-6.6/arch/s390/crypto/ |
H A D | crc32-vx.c | 86 struct crc_ctx *mctx = crypto_tfm_ctx(tfm); in crc32_vx_cra_init_zero() local 88 mctx->key = 0; in crc32_vx_cra_init_zero() 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 in crc32be_vx_setkey() local [all...] |
/kernel/linux/linux-5.10/drivers/crypto/stm32/ |
H 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 131 writel_relaxed(bitrev32(mctx in stm32_crc_init() 151 struct stm32_crc_ctx *mctx = crypto_shash_ctx(desc->tfm); burst_update() local 245 struct stm32_crc_ctx *mctx = crypto_shash_ctx(desc->tfm); stm32_crc_final() local [all...] |
/kernel/linux/linux-6.6/drivers/crypto/stm32/ |
H 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 131 writel_relaxed(bitrev32(mctx in stm32_crc_init() 151 struct stm32_crc_ctx *mctx = crypto_shash_ctx(desc->tfm); burst_update() local 245 struct stm32_crc_ctx *mctx = crypto_shash_ctx(desc->tfm); stm32_crc_final() local [all...] |
/kernel/linux/linux-5.10/arch/mips/crypto/ |
H 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 local [all...] |
/kernel/linux/linux-6.6/arch/mips/crypto/ |
H A 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 local [all...] |