Lines Matching refs:XTS_BLOCK_SIZE
31 uint8_t b[XTS_BLOCK_SIZE];
93 func(ctx, XTS_BLOCK_SIZE, dst->b, dst->b); in xts_tweak_encdec()
128 encfunc(tweakctx, XTS_BLOCK_SIZE, T.b, iv); in xts_decrypt()
141 memcpy(&D, src, XTS_BLOCK_SIZE); in xts_decrypt()
143 memcpy(dst, &D, XTS_BLOCK_SIZE); in xts_decrypt()
144 src += XTS_BLOCK_SIZE; in xts_decrypt()
145 dst += XTS_BLOCK_SIZE; in xts_decrypt()
152 memcpy(&CC, &T, XTS_BLOCK_SIZE); in xts_decrypt()
156 memcpy(&S, src, XTS_BLOCK_SIZE); in xts_decrypt()
161 CC.b[i] = src[XTS_BLOCK_SIZE + i]; in xts_decrypt()
162 dst[XTS_BLOCK_SIZE + i] = PP.b[i]; in xts_decrypt()
164 for (; i < XTS_BLOCK_SIZE; i++) { in xts_decrypt()
170 memcpy(dst, &D, XTS_BLOCK_SIZE); in xts_decrypt()
174 decfunc(tweakctx, XTS_BLOCK_SIZE, iv, T.b); in xts_decrypt()
204 encfunc(tweakctx, XTS_BLOCK_SIZE, T.b, iv); in xts_encrypt()
217 memcpy(&D, src, XTS_BLOCK_SIZE); in xts_encrypt()
219 memcpy(dst, &D, XTS_BLOCK_SIZE); in xts_encrypt()
221 dst += XTS_BLOCK_SIZE; in xts_encrypt()
222 src += XTS_BLOCK_SIZE; in xts_encrypt()
230 memcpy(&S, src, XTS_BLOCK_SIZE); in xts_encrypt()
235 PP.b[i] = src[XTS_BLOCK_SIZE + i]; in xts_encrypt()
236 dst[XTS_BLOCK_SIZE + i] = CC.b[i]; in xts_encrypt()
239 for (; i < XTS_BLOCK_SIZE; i++) { in xts_encrypt()
245 memcpy(dst, &D, XTS_BLOCK_SIZE); in xts_encrypt()
249 decfunc(tweakctx, XTS_BLOCK_SIZE, iv, T.b); in xts_encrypt()