Home
last modified time | relevance | path

Searched refs:XTS_BLOCK_SIZE (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.10/crypto/
Dxts.c86 const bool cts = (req->cryptlen % XTS_BLOCK_SIZE); in xts_xor_tweak()
87 const int bs = XTS_BLOCK_SIZE; in xts_xor_tweak()
109 w.total - w.nbytes + avail < 2 * XTS_BLOCK_SIZE) { in xts_xor_tweak()
150 scatterwalk_map_and_copy(&b, rctx->tail, 0, XTS_BLOCK_SIZE, 0); in xts_cts_done()
152 scatterwalk_map_and_copy(&b, rctx->tail, 0, XTS_BLOCK_SIZE, 1); in xts_cts_done()
163 int offset = req->cryptlen & ~(XTS_BLOCK_SIZE - 1); in xts_cts_final()
166 int tail = req->cryptlen % XTS_BLOCK_SIZE; in xts_cts_final()
171 offset - XTS_BLOCK_SIZE); in xts_cts_final()
173 scatterwalk_map_and_copy(b, rctx->tail, 0, XTS_BLOCK_SIZE, 0); in xts_cts_final()
179 scatterwalk_map_and_copy(b, rctx->tail, 0, XTS_BLOCK_SIZE + tail, 1); in xts_cts_final()
[all …]
/Linux-v5.10/arch/x86/crypto/
Dglue_helper.c270 const bool cts = (req->cryptlen % XTS_BLOCK_SIZE); in glue_xts_req_128bit()
278 if (req->cryptlen < XTS_BLOCK_SIZE) in glue_xts_req_128bit()
284 tail = req->cryptlen % XTS_BLOCK_SIZE + XTS_BLOCK_SIZE; in glue_xts_req_128bit()
326 next_tweak = memcpy(b, req->iv, XTS_BLOCK_SIZE); in glue_xts_req_128bit()
332 skcipher_request_set_crypt(&subreq, src, dst, XTS_BLOCK_SIZE, in glue_xts_req_128bit()
341 scatterwalk_map_and_copy(b, dst, 0, XTS_BLOCK_SIZE, 0); in glue_xts_req_128bit()
342 memcpy(b + 1, b, tail - XTS_BLOCK_SIZE); in glue_xts_req_128bit()
343 scatterwalk_map_and_copy(b, src, XTS_BLOCK_SIZE, in glue_xts_req_128bit()
344 tail - XTS_BLOCK_SIZE, 0); in glue_xts_req_128bit()
347 skcipher_request_set_crypt(&subreq, dst, dst, XTS_BLOCK_SIZE, in glue_xts_req_128bit()
/Linux-v5.10/include/crypto/
Dxts.h9 #define XTS_BLOCK_SIZE 16 macro
/Linux-v5.10/drivers/crypto/vmx/
Daes_xts.c90 if (!crypto_simd_usable() || (req->cryptlen % XTS_BLOCK_SIZE) != 0) { in p8_aes_xts_crypt()
/Linux-v5.10/drivers/crypto/qat/qat_common/
Dqat_algs.c1096 if (req->cryptlen < XTS_BLOCK_SIZE) in qat_alg_skcipher_xts_encrypt()
1174 if (req->cryptlen < XTS_BLOCK_SIZE) in qat_alg_skcipher_xts_decrypt()
/Linux-v5.10/drivers/crypto/inside-secure/
Dsafexcel_cipher.c2518 if (req->cryptlen < XTS_BLOCK_SIZE) in safexcel_encrypt_xts()
2526 if (req->cryptlen < XTS_BLOCK_SIZE) in safexcel_decrypt_xts()
2542 .ivsize = XTS_BLOCK_SIZE,
2550 .cra_blocksize = XTS_BLOCK_SIZE,