Lines Matching refs:key_enc

184 		ctx->key_enc[i] = get_unaligned_le32(in_key + i * sizeof(u32));  in aesti_expand_key()
187 u32 *rki = ctx->key_enc + (i * kwords); in aesti_expand_key()
216 ctx->key_dec[0] = ctx->key_enc[key_len + 24]; in aesti_expand_key()
217 ctx->key_dec[1] = ctx->key_enc[key_len + 25]; in aesti_expand_key()
218 ctx->key_dec[2] = ctx->key_enc[key_len + 26]; in aesti_expand_key()
219 ctx->key_dec[3] = ctx->key_enc[key_len + 27]; in aesti_expand_key()
222 ctx->key_dec[i] = inv_mix_columns(ctx->key_enc[j]); in aesti_expand_key()
223 ctx->key_dec[i + 1] = inv_mix_columns(ctx->key_enc[j + 1]); in aesti_expand_key()
224 ctx->key_dec[i + 2] = inv_mix_columns(ctx->key_enc[j + 2]); in aesti_expand_key()
225 ctx->key_dec[i + 3] = inv_mix_columns(ctx->key_enc[j + 3]); in aesti_expand_key()
228 ctx->key_dec[i] = ctx->key_enc[0]; in aesti_expand_key()
229 ctx->key_dec[i + 1] = ctx->key_enc[1]; in aesti_expand_key()
230 ctx->key_dec[i + 2] = ctx->key_enc[2]; in aesti_expand_key()
231 ctx->key_dec[i + 3] = ctx->key_enc[3]; in aesti_expand_key()
253 ctx->key_enc[0] ^= __aesti_sbox[ 0] ^ __aesti_sbox[128]; in aesti_set_key()
254 ctx->key_enc[1] ^= __aesti_sbox[32] ^ __aesti_sbox[160]; in aesti_set_key()
255 ctx->key_enc[2] ^= __aesti_sbox[64] ^ __aesti_sbox[192]; in aesti_set_key()
256 ctx->key_enc[3] ^= __aesti_sbox[96] ^ __aesti_sbox[224]; in aesti_set_key()
269 const u32 *rkp = ctx->key_enc + 4; in aesti_encrypt()
274 st0[0] = ctx->key_enc[0] ^ get_unaligned_le32(in); in aesti_encrypt()
275 st0[1] = ctx->key_enc[1] ^ get_unaligned_le32(in + 4); in aesti_encrypt()
276 st0[2] = ctx->key_enc[2] ^ get_unaligned_le32(in + 8); in aesti_encrypt()
277 st0[3] = ctx->key_enc[3] ^ get_unaligned_le32(in + 12); in aesti_encrypt()