Lines Matching refs:key_enc
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()
293 ce_aes_ctr_encrypt(tail, tsrc, (u8 *)ctx->key_enc, in ctr_encrypt()
318 (u8 *)ctx->key1.key_enc, rounds, blocks, in xts_encrypt()
319 walk.iv, (u8 *)ctx->key2.key_enc, first); in xts_encrypt()
344 walk.iv, (u8 *)ctx->key2.key_enc, first); in xts_decrypt()