Lines Matching refs:st0
262 u32 st0[4], st1[4]; in aes_encrypt() local
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()
276 st0[0] ^= aes_sbox[ 0] ^ aes_sbox[ 64] ^ aes_sbox[134] ^ aes_sbox[195]; in aes_encrypt()
277 st0[1] ^= aes_sbox[16] ^ aes_sbox[ 82] ^ aes_sbox[158] ^ aes_sbox[221]; in aes_encrypt()
278 st0[2] ^= aes_sbox[32] ^ aes_sbox[ 96] ^ aes_sbox[160] ^ aes_sbox[234]; in aes_encrypt()
279 st0[3] ^= aes_sbox[48] ^ aes_sbox[112] ^ aes_sbox[186] ^ aes_sbox[241]; in aes_encrypt()
282 st1[0] = mix_columns(subshift(st0, 0)) ^ rkp[0]; in aes_encrypt()
283 st1[1] = mix_columns(subshift(st0, 1)) ^ rkp[1]; in aes_encrypt()
284 st1[2] = mix_columns(subshift(st0, 2)) ^ rkp[2]; in aes_encrypt()
285 st1[3] = mix_columns(subshift(st0, 3)) ^ rkp[3]; in aes_encrypt()
290 st0[0] = mix_columns(subshift(st1, 0)) ^ rkp[4]; in aes_encrypt()
291 st0[1] = mix_columns(subshift(st1, 1)) ^ rkp[5]; in aes_encrypt()
292 st0[2] = mix_columns(subshift(st1, 2)) ^ rkp[6]; in aes_encrypt()
293 st0[3] = mix_columns(subshift(st1, 3)) ^ rkp[7]; in aes_encrypt()
313 u32 st0[4], st1[4]; in aes_decrypt() local
316 st0[0] = ctx->key_dec[0] ^ get_unaligned_le32(in); in aes_decrypt()
317 st0[1] = ctx->key_dec[1] ^ get_unaligned_le32(in + 4); in aes_decrypt()
318 st0[2] = ctx->key_dec[2] ^ get_unaligned_le32(in + 8); in aes_decrypt()
319 st0[3] = ctx->key_dec[3] ^ get_unaligned_le32(in + 12); in aes_decrypt()
327 st0[0] ^= aes_inv_sbox[ 0] ^ aes_inv_sbox[ 64] ^ aes_inv_sbox[129] ^ aes_inv_sbox[200]; in aes_decrypt()
328 st0[1] ^= aes_inv_sbox[16] ^ aes_inv_sbox[ 83] ^ aes_inv_sbox[150] ^ aes_inv_sbox[212]; in aes_decrypt()
329 st0[2] ^= aes_inv_sbox[32] ^ aes_inv_sbox[ 96] ^ aes_inv_sbox[160] ^ aes_inv_sbox[236]; in aes_decrypt()
330 st0[3] ^= aes_inv_sbox[48] ^ aes_inv_sbox[112] ^ aes_inv_sbox[187] ^ aes_inv_sbox[247]; in aes_decrypt()
333 st1[0] = inv_mix_columns(inv_subshift(st0, 0)) ^ rkp[0]; in aes_decrypt()
334 st1[1] = inv_mix_columns(inv_subshift(st0, 1)) ^ rkp[1]; in aes_decrypt()
335 st1[2] = inv_mix_columns(inv_subshift(st0, 2)) ^ rkp[2]; in aes_decrypt()
336 st1[3] = inv_mix_columns(inv_subshift(st0, 3)) ^ rkp[3]; in aes_decrypt()
341 st0[0] = inv_mix_columns(inv_subshift(st1, 0)) ^ rkp[4]; in aes_decrypt()
342 st0[1] = inv_mix_columns(inv_subshift(st1, 1)) ^ rkp[5]; in aes_decrypt()
343 st0[2] = inv_mix_columns(inv_subshift(st1, 2)) ^ rkp[6]; in aes_decrypt()
344 st0[3] = inv_mix_columns(inv_subshift(st1, 3)) ^ rkp[7]; in aes_decrypt()