Lines Matching refs:key_enc
199 ctx->key_enc[i] = get_unaligned_le32(in_key + i * sizeof(u32)); in aes_expandkey()
202 u32 *rki = ctx->key_enc + (i * kwords); in aes_expandkey()
231 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()
245 ctx->key_dec[i + 2] = ctx->key_enc[2]; in aes_expandkey()
246 ctx->key_dec[i + 3] = ctx->key_enc[3]; in aes_expandkey()
260 const u32 *rkp = ctx->key_enc + 4; in aes_encrypt()
265 st0[0] = ctx->key_enc[0] ^ get_unaligned_le32(in); in aes_encrypt()
266 st0[1] = ctx->key_enc[1] ^ get_unaligned_le32(in + 4); in aes_encrypt()
267 st0[2] = ctx->key_enc[2] ^ get_unaligned_le32(in + 8); in aes_encrypt()
268 st0[3] = ctx->key_enc[3] ^ get_unaligned_le32(in + 12); in aes_encrypt()