Home
last modified time | relevance | path

Searched refs:key_dec (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.4/lib/crypto/
Daes.c231 ctx->key_dec[0] = ctx->key_enc[key_len + 24]; in aes_expandkey()
232 ctx->key_dec[1] = ctx->key_enc[key_len + 25]; in aes_expandkey()
233 ctx->key_dec[2] = ctx->key_enc[key_len + 26]; in aes_expandkey()
234 ctx->key_dec[3] = ctx->key_enc[key_len + 27]; in aes_expandkey()
237 ctx->key_dec[i] = inv_mix_columns(ctx->key_enc[j]); in aes_expandkey()
238 ctx->key_dec[i + 1] = inv_mix_columns(ctx->key_enc[j + 1]); in aes_expandkey()
239 ctx->key_dec[i + 2] = inv_mix_columns(ctx->key_enc[j + 2]); in aes_expandkey()
240 ctx->key_dec[i + 3] = inv_mix_columns(ctx->key_enc[j + 3]); in aes_expandkey()
243 ctx->key_dec[i] = ctx->key_enc[0]; in aes_expandkey()
244 ctx->key_dec[i + 1] = ctx->key_enc[1]; in aes_expandkey()
[all …]
/Linux-v5.4/arch/arm64/crypto/
Daes-ce-glue.c70 __aes_ce_decrypt(ctx->key_dec, dst, src, num_rounds(ctx)); in aes_cipher_decrypt()
85 struct aes_block *key_enc, *key_dec; in ce_aes_expandkey() local
129 key_dec = (struct aes_block *)ctx->key_dec; in ce_aes_expandkey()
132 key_dec[0] = key_enc[j]; in ce_aes_expandkey()
134 __aes_ce_invert(key_dec + i, key_enc + j); in ce_aes_expandkey()
135 key_dec[i] = key_enc[0]; in ce_aes_expandkey()
Daes-cipher-glue.c28 __aes_arm64_decrypt(ctx->key_dec, out, in, rounds); in aes_arm64_decrypt()
Daes-glue.c224 ctx->key_dec, rounds, blocks); in ecb_decrypt()
271 ctx->key_dec, rounds, blocks, walk->iv); in cbc_decrypt_walk()
397 ctx->key_dec, rounds, walk.nbytes, walk.iv); in cts_cbc_decrypt()
455 ctx->key1.key_dec, rounds, blocks, in essiv_cbc_decrypt()
640 ctx->key1.key_dec, rounds, nbytes, in xts_decrypt()
663 ctx->key1.key_dec, rounds, walk.nbytes, in xts_decrypt()
Daes-neonbs-glue.c415 neon_aes_xts_decrypt(out, in, ctx->cts.key_dec, ctx->key.rounds, in __xts_crypt()
/Linux-v5.4/arch/powerpc/crypto/
Daes-spe-glue.c40 u32 key_dec[AES_MAX_KEYLENGTH_U32]; member
46 u32 key_dec[AES_MAX_KEYLENGTH_U32]; member
52 extern void ppc_decrypt_aes(u8 *out, const u8 *in, u32 *key_dec, u32 rounds);
55 extern void ppc_decrypt_ecb(u8 *out, const u8 *in, u32 *key_dec, u32 rounds,
59 extern void ppc_decrypt_cbc(u8 *out, const u8 *in, u32 *key_dec, u32 rounds,
65 extern void ppc_decrypt_xts(u8 *out, const u8 *in, u32 *key_dec, u32 rounds,
72 extern void ppc_generate_decrypt_key(u32 *key_dec,u32 *key_enc,
116 ppc_generate_decrypt_key(ctx->key_dec, ctx->key_enc, key_len); in ppc_aes_setkey()
158 ppc_generate_decrypt_key(ctx->key_dec, ctx->key_enc, key_len); in ppc_xts_setkey()
177 ppc_decrypt_aes(out, in, ctx->key_dec, ctx->rounds); in ppc_aes_decrypt()
[all …]
/Linux-v5.4/crypto/
Daes_generic.c1257 const u32 *kp = ctx->key_dec + 4; in crypto_aes_decrypt()
1259 b0[0] = ctx->key_dec[0] ^ get_unaligned_le32(in); in crypto_aes_decrypt()
1260 b0[1] = ctx->key_dec[1] ^ get_unaligned_le32(in + 4); in crypto_aes_decrypt()
1261 b0[2] = ctx->key_dec[2] ^ get_unaligned_le32(in + 8); in crypto_aes_decrypt()
1262 b0[3] = ctx->key_dec[3] ^ get_unaligned_le32(in + 12); in crypto_aes_decrypt()
/Linux-v5.4/arch/arm/crypto/
Daes-ce-glue.c80 struct aes_block *key_enc, *key_dec; in ce_aes_expandkey() local
125 key_dec = (struct aes_block *)ctx->key_dec; in ce_aes_expandkey()
128 key_dec[0] = key_enc[j]; in ce_aes_expandkey()
130 ce_aes_invert(key_dec + i, key_enc + j); in ce_aes_expandkey()
131 key_dec[i] = key_enc[0]; in ce_aes_expandkey()
210 ctx->key_dec, num_rounds(ctx), blocks); in ecb_decrypt()
258 ctx->key_dec, num_rounds(ctx), blocks, in cbc_decrypt_walk()
386 ctx->key_dec, num_rounds(ctx), walk.nbytes, in cts_cbc_decrypt()
569 ctx->key1.key_dec, rounds, nbytes, walk.iv, in xts_decrypt()
591 ctx->key1.key_dec, rounds, walk.nbytes, walk.iv, in xts_decrypt()
Daes-cipher-glue.c29 __aes_arm_decrypt(ctx->key_dec, rounds, in, out); in aes_arm_decrypt()
/Linux-v5.4/include/crypto/
Daes.h27 u32 key_dec[AES_MAX_KEYLENGTH_U32]; member
/Linux-v5.4/drivers/crypto/marvell/
Dcipher.c266 ctx->aes.key_dec[4 + i] = in mv_cesa_aes_setkey()
692 key = ctx->aes.key_dec; in mv_cesa_aes_op()
/Linux-v5.4/drivers/crypto/
Dpadlock-aes.c154 memcpy(ctx->D, gen_aes.key_dec, AES_MAX_KEYLENGTH); in aes_set_key()