Lines Matching full:tweak
313 aesni_crypt_xts_block(int rounds, const __m128i *key_schedule, __m128i *tweak, in aesni_crypt_xts_block() argument
318 block = _mm_loadu_si128((const __m128i *)from) ^ *tweak; in aesni_crypt_xts_block()
325 _mm_storeu_si128((__m128i *)to, block ^ *tweak); in aesni_crypt_xts_block()
327 *tweak = xts_crank_lfsr(*tweak); in aesni_crypt_xts_block()
331 aesni_crypt_xts_block8(int rounds, const __m128i *key_schedule, __m128i *tweak, in aesni_crypt_xts_block8() argument
341 tmptweak = *tweak; in aesni_crypt_xts_block8()
363 *tweak = tmptweak; in aesni_crypt_xts_block8()
389 uint8_t tweak[AES_XTS_BLOCKSIZE] __aligned(16); in aesni_crypt_xts() local
393 * Prepare tweak as E_k2(IV). IV is specified as LE representation in aesni_crypt_xts()
397 bcopy(iv, tweak, AES_XTS_IVSIZE); in aesni_crypt_xts()
399 bzero(tweak + AES_XTS_IVSIZE, AES_XTS_IVSIZE); in aesni_crypt_xts()
403 tweakreg = _mm_loadu_si128((__m128i *)&tweak[0]); in aesni_crypt_xts()