Lines Matching defs:xword
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
252 * On exit, xword is r7:r6:r5:r4
256 xword = _mm_shuffle_epi32(xword, 0xff); // X:X:X:X
257 xword = _mm_xor_si128(xword, state); // X+r3:X+r2:X+r1:r4
259 xword = _mm_xor_si128(xword, state); // X+r3+r2:X+r2+r1:r5:r4
261 xword = _mm_xor_si128(xword, state); // X+r3+r2+r1:r6:r5:r4
263 state = _mm_xor_si128(xword, state); // r7:r6:r5:r4
289 static void aesni_set_rk_192(__m128i *state0, __m128i *state1, __m128i xword,
296 * and xword is stuff:stuff:X:stuff with X = rot( sub( r3 ) ) ^ RCON
302 xword = _mm_shuffle_epi32(xword, 0x55); // X:X:X:X
303 xword = _mm_xor_si128(xword, *state0); // X+r3:X+r2:X+r1:X+r0
305 xword = _mm_xor_si128(xword, *state0); // X+r3+r2:X+r2+r1:X+r1+r0:X+r0
307 xword = _mm_xor_si128(xword, *state0); // X+r3+r2+r1:X+r2+r1+r0:X+r1+r0:X+r0
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
312 xword = _mm_shuffle_epi32(xword, 0xff); // r9:r9:r9:r9
313 xword = _mm_xor_si128(xword, *state1); // stuff:stuff:r9+r5:r9+r4
315 xword = _mm_xor_si128(xword, *state1); // stuff:stuff:r9+r5+r4:r9+r4
316 *state1 = xword; // = stuff:stuff:r11:r10
349 static void aesni_set_rk_256(__m128i state0, __m128i state1, __m128i xword,
356 * xword is X:stuff:stuff:stuff with X = rot( sub( r7 )) ^ RCON
361 xword = _mm_shuffle_epi32(xword, 0xff);
362 xword = _mm_xor_si128(xword, state0);
364 xword = _mm_xor_si128(xword, state0);
366 xword = _mm_xor_si128(xword, state0);
368 state0 = _mm_xor_si128(state0, xword);
371 /* Set xword to stuff:Y:stuff:stuff with Y = subword( r11 )
373 xword = _mm_aeskeygenassist_si128(state0, 0x00);
374 xword = _mm_shuffle_epi32(xword, 0xaa);
375 xword = _mm_xor_si128(xword, state1);
377 xword = _mm_xor_si128(xword, state1);
379 xword = _mm_xor_si128(xword, state1);
381 state1 = _mm_xor_si128(state1, xword);