Lines Matching refs:XTS_BLOCK_SIZE
91 const bool cts = (req->cryptlen % XTS_BLOCK_SIZE); in xor_tweak()
92 const int bs = XTS_BLOCK_SIZE; in xor_tweak()
114 w.total - w.nbytes + avail < 2 * XTS_BLOCK_SIZE) { in xor_tweak()
155 scatterwalk_map_and_copy(&b, rctx->tail, 0, XTS_BLOCK_SIZE, 0); in cts_done()
157 scatterwalk_map_and_copy(&b, rctx->tail, 0, XTS_BLOCK_SIZE, 1); in cts_done()
167 int offset = req->cryptlen & ~(XTS_BLOCK_SIZE - 1); in cts_final()
170 int tail = req->cryptlen % XTS_BLOCK_SIZE; in cts_final()
175 offset - XTS_BLOCK_SIZE); in cts_final()
177 scatterwalk_map_and_copy(b, rctx->tail, 0, XTS_BLOCK_SIZE, 0); in cts_final()
183 scatterwalk_map_and_copy(b, rctx->tail, 0, XTS_BLOCK_SIZE + tail, 1); in cts_final()
188 XTS_BLOCK_SIZE, NULL); in cts_final()
194 scatterwalk_map_and_copy(b, rctx->tail, 0, XTS_BLOCK_SIZE, 0); in cts_final()
196 scatterwalk_map_and_copy(b, rctx->tail, 0, XTS_BLOCK_SIZE, 1); in cts_final()
211 if (!err && unlikely(req->cryptlen % XTS_BLOCK_SIZE)) { in encrypt_done()
231 if (!err && unlikely(req->cryptlen % XTS_BLOCK_SIZE)) { in decrypt_done()
247 if (req->cryptlen < XTS_BLOCK_SIZE) in init_crypt()
253 req->cryptlen & ~(XTS_BLOCK_SIZE - 1), NULL); in init_crypt()
272 if (err || likely((req->cryptlen % XTS_BLOCK_SIZE) == 0)) in encrypt()
289 if (err || likely((req->cryptlen % XTS_BLOCK_SIZE) == 0)) in decrypt()
386 if (alg->base.cra_blocksize != XTS_BLOCK_SIZE) in create()
425 inst->alg.base.cra_blocksize = XTS_BLOCK_SIZE; in create()
429 inst->alg.ivsize = XTS_BLOCK_SIZE; in create()