Lines Matching refs:state0

289 static void aesni_set_rk_192(__m128i *state0, __m128i *state1, __m128i xword,
295 * On entry state0 is r3:r2:r1:r0, state1 is stuff:stuff:r5:r4
299 * On exit, state0 is r9:r8:r7:r6 and state1 is stuff:stuff:r11:r10
303 xword = _mm_xor_si128(xword, *state0); // X+r3:X+r2:X+r1:X+r0
304 *state0 = _mm_slli_si128(*state0, 4); // r2:r1:r0:0
305 xword = _mm_xor_si128(xword, *state0); // X+r3+r2:X+r2+r1:X+r1+r0:X+r0
306 *state0 = _mm_slli_si128(*state0, 4); // r1:r0:0:0
307 xword = _mm_xor_si128(xword, *state0); // X+r3+r2+r1:X+r2+r1+r0:X+r1+r0:X+r0
308 *state0 = _mm_slli_si128(*state0, 4); // r0:0:0:0
309 xword = _mm_xor_si128(xword, *state0); // X+r3+r2+r1+r0:X+r2+r1+r0:X+r1+r0:X+r0
310 *state0 = xword; // = r9:r8:r7:r6
318 /* Store state0 and the low half of state1 into rk, which is conceptually
320 * rk is not necessarily aligned so just `*rk = *state0` doesn't work. */
321 memcpy(rk, state0, 16);
331 __m128i state0 = ((__m128i *) rk)[0];
334 aesni_set_rk_192(&state0, &state1, _mm_aeskeygenassist_si128(state1, 0x01), rk + 24 * 1);
335 aesni_set_rk_192(&state0, &state1, _mm_aeskeygenassist_si128(state1, 0x02), rk + 24 * 2);
336 aesni_set_rk_192(&state0, &state1, _mm_aeskeygenassist_si128(state1, 0x04), rk + 24 * 3);
337 aesni_set_rk_192(&state0, &state1, _mm_aeskeygenassist_si128(state1, 0x08), rk + 24 * 4);
338 aesni_set_rk_192(&state0, &state1, _mm_aeskeygenassist_si128(state1, 0x10), rk + 24 * 5);
339 aesni_set_rk_192(&state0, &state1, _mm_aeskeygenassist_si128(state1, 0x20), rk + 24 * 6);
340 aesni_set_rk_192(&state0, &state1, _mm_aeskeygenassist_si128(state1, 0x40), rk + 24 * 7);
341 aesni_set_rk_192(&state0, &state1, _mm_aeskeygenassist_si128(state1, 0x80), rk + 24 * 8);
349 static void aesni_set_rk_256(__m128i state0, __m128i state1, __m128i xword,
355 * On entry state0 is r3:r2:r1:r0, state1 is r7:r6:r5:r4 and
362 xword = _mm_xor_si128(xword, state0);
363 state0 = _mm_slli_si128(state0, 4);
364 xword = _mm_xor_si128(xword, state0);
365 state0 = _mm_slli_si128(state0, 4);
366 xword = _mm_xor_si128(xword, state0);
367 state0 = _mm_slli_si128(state0, 4);
368 state0 = _mm_xor_si128(state0, xword);
369 *rk0 = state0;
373 xword = _mm_aeskeygenassist_si128(state0, 0x00);