/kernel/linux/linux-5.10/crypto/ |
H A D | xts.c | 86 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 in xts_cts_final() [all...] |
/kernel/linux/linux-6.6/crypto/ |
H A D | xts.c | 87 const bool cts = (req->cryptlen % XTS_BLOCK_SIZE); in xts_xor_tweak() 88 const int bs = XTS_BLOCK_SIZE; in xts_xor_tweak() 110 w.total - w.nbytes + avail < 2 * XTS_BLOCK_SIZE) { in xts_xor_tweak() 151 scatterwalk_map_and_copy(&b, rctx->tail, 0, XTS_BLOCK_SIZE, 0); in xts_cts_done() 153 scatterwalk_map_and_copy(&b, rctx->tail, 0, XTS_BLOCK_SIZE, 1); in xts_cts_done() 164 int offset = req->cryptlen & ~(XTS_BLOCK_SIZE - 1); in xts_cts_final() 167 int tail = req->cryptlen % XTS_BLOCK_SIZE; in xts_cts_final() 172 offset - XTS_BLOCK_SIZE); in xts_cts_final() 174 scatterwalk_map_and_copy(b, rctx->tail, 0, XTS_BLOCK_SIZE, 0); in xts_cts_final() 180 scatterwalk_map_and_copy(b, rctx->tail, 0, XTS_BLOCK_SIZE in xts_cts_final() [all...] |
/kernel/linux/linux-5.10/arch/x86/crypto/ |
H A D | glue_helper.c | 270 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, in glue_xts_req_128bit() [all...] |
/kernel/linux/linux-6.6/include/crypto/ |
H A D | xts.h | 9 #define XTS_BLOCK_SIZE 16 macro
|
/kernel/linux/linux-5.10/include/crypto/ |
H A D | xts.h | 9 #define XTS_BLOCK_SIZE 16 macro
|
/kernel/linux/linux-5.10/drivers/crypto/vmx/ |
H A D | aes_xts.c | 90 if (!crypto_simd_usable() || (req->cryptlen % XTS_BLOCK_SIZE) != 0) { in p8_aes_xts_crypt()
|
/kernel/linux/linux-6.6/drivers/crypto/vmx/ |
H A D | aes_xts.c | 90 if (!crypto_simd_usable() || (req->cryptlen % XTS_BLOCK_SIZE) != 0) { in p8_aes_xts_crypt()
|
/kernel/linux/linux-5.10/drivers/crypto/inside-secure/ |
H A D | safexcel_cipher.c | 2518 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,
|
/kernel/linux/linux-6.6/drivers/crypto/inside-secure/ |
H A D | safexcel_cipher.c | 2538 if (req->cryptlen < XTS_BLOCK_SIZE) in safexcel_encrypt_xts() 2546 if (req->cryptlen < XTS_BLOCK_SIZE) in safexcel_decrypt_xts() 2562 .ivsize = XTS_BLOCK_SIZE, 2570 .cra_blocksize = XTS_BLOCK_SIZE,
|
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/ |
H A D | qat_algs.c | 1120 if (req->cryptlen < XTS_BLOCK_SIZE) in qat_alg_skcipher_xts_encrypt() 1198 if (req->cryptlen < XTS_BLOCK_SIZE) in qat_alg_skcipher_xts_decrypt()
|
/kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_common/ |
H A D | qat_algs.c | 1072 if (req->cryptlen < XTS_BLOCK_SIZE) in qat_alg_skcipher_xts_encrypt() 1140 if (req->cryptlen < XTS_BLOCK_SIZE) in qat_alg_skcipher_xts_decrypt()
|
/kernel/linux/linux-6.6/drivers/crypto/ |
H A D | atmel-aes.c | 1097 if (req->cryptlen < XTS_BLOCK_SIZE) in atmel_aes_crypt() 1100 if (!IS_ALIGNED(req->cryptlen, XTS_BLOCK_SIZE)) in atmel_aes_crypt()
|