Lines Matching refs:state1
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
313 xword = _mm_xor_si128(xword, *state1); // stuff:stuff:r9+r5:r9+r4
314 *state1 = _mm_slli_si128(*state1, 4); // stuff:stuff:r4:0
315 xword = _mm_xor_si128(xword, *state1); // stuff:stuff:r9+r5+r4:r9+r4
316 *state1 = xword; // = stuff:stuff:r11:r10
318 /* Store state0 and the low half of state1 into rk, which is conceptually
322 memcpy(rk + 16, state1, 8);
332 __m128i state1 = _mm_loadl_epi64(((__m128i *) rk) + 1);
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
375 xword = _mm_xor_si128(xword, state1);
376 state1 = _mm_slli_si128(state1, 4);
377 xword = _mm_xor_si128(xword, state1);
378 state1 = _mm_slli_si128(state1, 4);
379 xword = _mm_xor_si128(xword, state1);
380 state1 = _mm_slli_si128(state1, 4);
381 state1 = _mm_xor_si128(state1, xword);
382 *rk1 = state1;