Lines Matching refs:tweak
165 uint8x16_t *tweak, const uint8_t *from, uint8_t *to, int do_encrypt)
169 block = vld1q_u8(from) ^ *tweak;
176 vst1q_u8(to, block ^ *tweak);
178 *tweak = vreinterpretq_u8_s32(xts_crank_lfsr(vreinterpretq_s32_u8(*tweak)));
187 uint8_t tweak[AES_XTS_BLOCKSIZE] __aligned(16);
191 * Prepare tweak as E_k2(IV). IV is specified as LE representation
195 bcopy(iv, tweak, AES_XTS_IVSIZE);
197 bzero(tweak + AES_XTS_IVSIZE, AES_XTS_IVSIZE);
201 tweakreg = vld1q_u8(tweak);