Home
last modified time | relevance | path

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

/linux-4.4.14/arch/arm64/crypto/
Daes-ce-cipher.c122 "1"(ctx->key_dec), in aes_cipher_decrypt()
160 struct aes_block *key_enc, *key_dec; in ce_aes_expandkey() local
203 key_dec = (struct aes_block *)ctx->key_dec; in ce_aes_expandkey()
206 key_dec[0] = key_enc[j]; in ce_aes_expandkey()
212 : [out] "=Q"(key_dec[i]) in ce_aes_expandkey()
215 key_dec[i] = key_enc[0]; in ce_aes_expandkey()
Daes-glue.c136 (u8 *)ctx->key_dec, rounds, blocks, first); in ecb_decrypt()
181 (u8 *)ctx->key_dec, rounds, blocks, walk.iv, in cbc_decrypt()
274 (u8 *)ctx->key1.key_dec, rounds, blocks, in xts_decrypt()
/linux-4.4.14/crypto/
Daes_generic.c1228 ctx->key_dec[key_len + 24] = ctx->key_enc[0] = le32_to_cpu(key[0]); in crypto_aes_expand_key()
1229 ctx->key_dec[key_len + 25] = ctx->key_enc[1] = le32_to_cpu(key[1]); in crypto_aes_expand_key()
1230 ctx->key_dec[key_len + 26] = ctx->key_enc[2] = le32_to_cpu(key[2]); in crypto_aes_expand_key()
1231 ctx->key_dec[key_len + 27] = ctx->key_enc[3] = le32_to_cpu(key[3]); in crypto_aes_expand_key()
1258 ctx->key_dec[0] = ctx->key_enc[key_len + 24]; in crypto_aes_expand_key()
1259 ctx->key_dec[1] = ctx->key_enc[key_len + 25]; in crypto_aes_expand_key()
1260 ctx->key_dec[2] = ctx->key_enc[key_len + 26]; in crypto_aes_expand_key()
1261 ctx->key_dec[3] = ctx->key_enc[key_len + 27]; in crypto_aes_expand_key()
1265 imix_col(ctx->key_dec[j], ctx->key_enc[i]); in crypto_aes_expand_key()
1408 const u32 *kp = ctx->key_dec + 4; in aes_decrypt()
[all …]
/linux-4.4.14/arch/powerpc/crypto/
Daes-spe-glue.c44 u32 key_dec[AES_MAX_KEYLENGTH_U32]; member
50 u32 key_dec[AES_MAX_KEYLENGTH_U32]; member
56 extern void ppc_decrypt_aes(u8 *out, const u8 *in, u32 *key_dec, u32 rounds);
59 extern void ppc_decrypt_ecb(u8 *out, const u8 *in, u32 *key_dec, u32 rounds,
63 extern void ppc_decrypt_cbc(u8 *out, const u8 *in, u32 *key_dec, u32 rounds,
69 extern void ppc_decrypt_xts(u8 *out, const u8 *in, u32 *key_dec, u32 rounds,
76 extern void ppc_generate_decrypt_key(u32 *key_dec,u32 *key_enc,
119 ppc_generate_decrypt_key(ctx->key_dec, ctx->key_enc, key_len); in ppc_aes_setkey()
156 ppc_generate_decrypt_key(ctx->key_dec, ctx->key_enc, key_len); in ppc_xts_setkey()
175 ppc_decrypt_aes(out, in, ctx->key_dec, ctx->rounds); in ppc_aes_decrypt()
[all …]
/linux-4.4.14/arch/arm/crypto/
Daes-ce-glue.c74 struct aes_block *key_enc, *key_dec; in ce_aes_expandkey() local
118 key_dec = (struct aes_block *)ctx->key_dec; in ce_aes_expandkey()
121 key_dec[0] = key_enc[j]; in ce_aes_expandkey()
123 ce_aes_invert(key_dec + i, key_enc + j); in ce_aes_expandkey()
124 key_dec[i] = key_enc[0]; in ce_aes_expandkey()
204 (u8 *)ctx->key_dec, num_rounds(ctx), blocks); in ecb_decrypt()
251 (u8 *)ctx->key_dec, num_rounds(ctx), blocks, in cbc_decrypt()
343 (u8 *)ctx->key1.key_dec, rounds, blocks, in xts_decrypt()
/linux-4.4.14/include/crypto/
Daes.h26 u32 key_dec[AES_MAX_KEYLENGTH_U32]; member
/linux-4.4.14/drivers/crypto/marvell/
Dcipher.c246 ctx->aes.key_dec[4 + i] = in mv_cesa_aes_setkey()
675 key = ctx->aes.key_dec; in mv_cesa_aes_op()
/linux-4.4.14/drivers/crypto/
Dpadlock-aes.c153 memcpy(ctx->D, gen_aes.key_dec, AES_MAX_KEYLENGTH); in aes_set_key()