Lines Matching refs:state
91 __m128i state;
92 memcpy(&state, input, 16);
93 state = _mm_xor_si128(state, rk[0]); // state ^= *rk;
100 state = _mm_aesdec_si128(state, *rk);
104 state = _mm_aesdeclast_si128(state, *rk);
111 state = _mm_aesenc_si128(state, *rk);
115 state = _mm_aesenclast_si128(state, *rk);
118 memcpy(output, &state, 16);
244 static __m128i aesni_set_rk_128(__m128i state, __m128i xword)
249 * On entry state is r3:r2:r1:r0 and xword is X:stuff:stuff:stuff
257 xword = _mm_xor_si128(xword, state); // X+r3:X+r2:X+r1:r4
258 state = _mm_slli_si128(state, 4); // r2:r1:r0:0
259 xword = _mm_xor_si128(xword, state); // X+r3+r2:X+r2+r1:r5:r4
260 state = _mm_slli_si128(state, 4); // r1:r0:0:0
261 xword = _mm_xor_si128(xword, state); // X+r3+r2+r1:r6:r5:r4
262 state = _mm_slli_si128(state, 4); // r0:0:0:0
263 state = _mm_xor_si128(xword, state); // r7:r6:r5:r4
264 return state;