Lines Matching refs:st0
271 u32 st0[4], st1[4]; in aesti_encrypt() local
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()
279 st0[0] ^= __aesti_sbox[ 0] ^ __aesti_sbox[128]; in aesti_encrypt()
280 st0[1] ^= __aesti_sbox[32] ^ __aesti_sbox[160]; in aesti_encrypt()
281 st0[2] ^= __aesti_sbox[64] ^ __aesti_sbox[192]; in aesti_encrypt()
282 st0[3] ^= __aesti_sbox[96] ^ __aesti_sbox[224]; in aesti_encrypt()
285 st1[0] = mix_columns(subshift(st0, 0)) ^ rkp[0]; in aesti_encrypt()
286 st1[1] = mix_columns(subshift(st0, 1)) ^ rkp[1]; in aesti_encrypt()
287 st1[2] = mix_columns(subshift(st0, 2)) ^ rkp[2]; in aesti_encrypt()
288 st1[3] = mix_columns(subshift(st0, 3)) ^ rkp[3]; in aesti_encrypt()
293 st0[0] = mix_columns(subshift(st1, 0)) ^ rkp[4]; in aesti_encrypt()
294 st0[1] = mix_columns(subshift(st1, 1)) ^ rkp[5]; in aesti_encrypt()
295 st0[2] = mix_columns(subshift(st1, 2)) ^ rkp[6]; in aesti_encrypt()
296 st0[3] = mix_columns(subshift(st1, 3)) ^ rkp[7]; in aesti_encrypt()
310 u32 st0[4], st1[4]; in aesti_decrypt() local
313 st0[0] = ctx->key_dec[0] ^ get_unaligned_le32(in); in aesti_decrypt()
314 st0[1] = ctx->key_dec[1] ^ get_unaligned_le32(in + 4); in aesti_decrypt()
315 st0[2] = ctx->key_dec[2] ^ get_unaligned_le32(in + 8); in aesti_decrypt()
316 st0[3] = ctx->key_dec[3] ^ get_unaligned_le32(in + 12); in aesti_decrypt()
318 st0[0] ^= __aesti_inv_sbox[ 0] ^ __aesti_inv_sbox[128]; in aesti_decrypt()
319 st0[1] ^= __aesti_inv_sbox[32] ^ __aesti_inv_sbox[160]; in aesti_decrypt()
320 st0[2] ^= __aesti_inv_sbox[64] ^ __aesti_inv_sbox[192]; in aesti_decrypt()
321 st0[3] ^= __aesti_inv_sbox[96] ^ __aesti_inv_sbox[224]; in aesti_decrypt()
324 st1[0] = inv_mix_columns(inv_subshift(st0, 0)) ^ rkp[0]; in aesti_decrypt()
325 st1[1] = inv_mix_columns(inv_subshift(st0, 1)) ^ rkp[1]; in aesti_decrypt()
326 st1[2] = inv_mix_columns(inv_subshift(st0, 2)) ^ rkp[2]; in aesti_decrypt()
327 st1[3] = inv_mix_columns(inv_subshift(st0, 3)) ^ rkp[3]; in aesti_decrypt()
332 st0[0] = inv_mix_columns(inv_subshift(st1, 0)) ^ rkp[4]; in aesti_decrypt()
333 st0[1] = inv_mix_columns(inv_subshift(st1, 1)) ^ rkp[5]; in aesti_decrypt()
334 st0[2] = inv_mix_columns(inv_subshift(st1, 2)) ^ rkp[6]; in aesti_decrypt()
335 st0[3] = inv_mix_columns(inv_subshift(st1, 3)) ^ rkp[7]; in aesti_decrypt()