Lines Matching refs:key_enc
207 ctx->key_enc[i] = get_unaligned_le32(in_key + i * sizeof(u32)); in aes_expandkey()
210 u32 *rki = ctx->key_enc + (i * kwords); in aes_expandkey()
239 ctx->key_dec[0] = ctx->key_enc[key_len + 24]; in aes_expandkey()
240 ctx->key_dec[1] = ctx->key_enc[key_len + 25]; in aes_expandkey()
241 ctx->key_dec[2] = ctx->key_enc[key_len + 26]; in aes_expandkey()
242 ctx->key_dec[3] = ctx->key_enc[key_len + 27]; in aes_expandkey()
245 ctx->key_dec[i] = inv_mix_columns(ctx->key_enc[j]); in aes_expandkey()
246 ctx->key_dec[i + 1] = inv_mix_columns(ctx->key_enc[j + 1]); in aes_expandkey()
247 ctx->key_dec[i + 2] = inv_mix_columns(ctx->key_enc[j + 2]); in aes_expandkey()
248 ctx->key_dec[i + 3] = inv_mix_columns(ctx->key_enc[j + 3]); in aes_expandkey()
251 ctx->key_dec[i] = ctx->key_enc[0]; in aes_expandkey()
252 ctx->key_dec[i + 1] = ctx->key_enc[1]; in aes_expandkey()
253 ctx->key_dec[i + 2] = ctx->key_enc[2]; in aes_expandkey()
254 ctx->key_dec[i + 3] = ctx->key_enc[3]; in aes_expandkey()
268 const u32 *rkp = ctx->key_enc + 4; in aes_encrypt()
280 st0[0] = ctx->key_enc[0] ^ get_unaligned_le32(in); in aes_encrypt()
281 st0[1] = ctx->key_enc[1] ^ get_unaligned_le32(in + 4); in aes_encrypt()
282 st0[2] = ctx->key_enc[2] ^ get_unaligned_le32(in + 8); in aes_encrypt()
283 st0[3] = ctx->key_enc[3] ^ get_unaligned_le32(in + 12); in aes_encrypt()