/linux-4.4.14/crypto/ |
D | aes_generic.c | 1150 t ^= ctx->key_enc[4 * i]; \ 1151 ctx->key_enc[4 * i + 4] = t; \ 1152 t ^= ctx->key_enc[4 * i + 1]; \ 1153 ctx->key_enc[4 * i + 5] = t; \ 1154 t ^= ctx->key_enc[4 * i + 2]; \ 1155 ctx->key_enc[4 * i + 6] = t; \ 1156 t ^= ctx->key_enc[4 * i + 3]; \ 1157 ctx->key_enc[4 * i + 7] = t; \ 1163 t ^= ctx->key_enc[6 * i]; \ 1164 ctx->key_enc[6 * i + 6] = t; \ [all …]
|
/linux-4.4.14/arch/powerpc/crypto/ |
D | aes-spe-glue.c | 43 u32 key_enc[AES_MAX_KEYLENGTH_U32]; member 49 u32 key_enc[AES_MAX_KEYLENGTH_U32]; member 55 extern void ppc_encrypt_aes(u8 *out, const u8 *in, u32 *key_enc, u32 rounds); 57 extern void ppc_encrypt_ecb(u8 *out, const u8 *in, u32 *key_enc, u32 rounds, 61 extern void ppc_encrypt_cbc(u8 *out, const u8 *in, u32 *key_enc, u32 rounds, 65 extern void ppc_crypt_ctr (u8 *out, const u8 *in, u32 *key_enc, u32 rounds, 67 extern void ppc_encrypt_xts(u8 *out, const u8 *in, u32 *key_enc, u32 rounds, 72 extern void ppc_expand_key_128(u32 *key_enc, const u8 *key); 73 extern void ppc_expand_key_192(u32 *key_enc, const u8 *key); 74 extern void ppc_expand_key_256(u32 *key_enc, const u8 *key); [all …]
|
/linux-4.4.14/arch/arm64/crypto/ |
D | aes-ce-cipher.c | 77 "1"(ctx->key_enc), in aes_cipher_encrypt() 160 struct aes_block *key_enc, *key_dec; in ce_aes_expandkey() local 168 memcpy(ctx->key_enc, in_key, key_len); in ce_aes_expandkey() 173 u32 *rki = ctx->key_enc + (i * kwords); in ce_aes_expandkey() 202 key_enc = (struct aes_block *)ctx->key_enc; in ce_aes_expandkey() 206 key_dec[0] = key_enc[j]; in ce_aes_expandkey() 213 : [in] "Q"(key_enc[j]) in ce_aes_expandkey() 215 key_dec[i] = key_enc[0]; in ce_aes_expandkey()
|
D | aes-ce-ccm-glue.c | 125 ce_aes_ccm_auth_data(mac, (u8 *)<ag, ltag.len, &macp, ctx->key_enc, in ccm_calculate_auth_mac() 138 ce_aes_ccm_auth_data(mac, p, n, &macp, ctx->key_enc, in ccm_calculate_auth_mac() 191 walk.nbytes - tail, ctx->key_enc, in ccm_encrypt() 198 ce_aes_ccm_final(mac, buf, ctx->key_enc, num_rounds(ctx)); in ccm_encrypt() 256 walk.nbytes - tail, ctx->key_enc, in ccm_decrypt() 263 ce_aes_ccm_final(mac, buf, ctx->key_enc, num_rounds(ctx)); in ccm_decrypt()
|
D | aes-glue.c | 114 (u8 *)ctx->key_enc, rounds, blocks, first); in ecb_encrypt() 158 (u8 *)ctx->key_enc, rounds, blocks, walk.iv, in cbc_encrypt() 205 (u8 *)ctx->key_enc, rounds, blocks, walk.iv, in ctr_encrypt() 225 aes_ctr_encrypt(tail, tsrc, (u8 *)ctx->key_enc, rounds, in ctr_encrypt() 250 (u8 *)ctx->key1.key_enc, rounds, blocks, in xts_encrypt() 251 (u8 *)ctx->key2.key_enc, walk.iv, first); in xts_encrypt() 275 (u8 *)ctx->key2.key_enc, walk.iv, first); in xts_decrypt()
|
/linux-4.4.14/arch/arm/crypto/ |
D | aes-ce-glue.c | 74 struct aes_block *key_enc, *key_dec; in ce_aes_expandkey() local 82 memcpy(ctx->key_enc, in_key, key_len); in ce_aes_expandkey() 87 u32 *rki = ctx->key_enc + (i * kwords); in ce_aes_expandkey() 117 key_enc = (struct aes_block *)ctx->key_enc; 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() 181 (u8 *)ctx->key_enc, num_rounds(ctx), blocks); in ecb_encrypt() 227 (u8 *)ctx->key_enc, num_rounds(ctx), blocks, in cbc_encrypt() 274 (u8 *)ctx->key_enc, num_rounds(ctx), blocks, in ctr_encrypt() [all …]
|
/linux-4.4.14/include/crypto/ |
D | aes.h | 25 u32 key_enc[AES_MAX_KEYLENGTH_U32]; member
|
/linux-4.4.14/drivers/crypto/marvell/ |
D | cipher.c | 247 cpu_to_le32(ctx->aes.key_enc[offset + i]); in mv_cesa_aes_setkey() 677 key = ctx->aes.key_enc; in mv_cesa_aes_op()
|
/linux-4.4.14/drivers/crypto/ |
D | mv_cesa.c | 185 memcpy(ctx->aes_dec_key, &gen_aes_key.key_enc[key_pos], 4 * 4); in compute_aes_dec_key() 192 memcpy(&ctx->aes_dec_key[4], &gen_aes_key.key_enc[key_pos], in compute_aes_dec_key()
|
D | padlock-aes.c | 152 memcpy(ctx->E, gen_aes.key_enc, AES_MAX_KEYLENGTH); in aes_set_key()
|