Searched refs:XTS_BLOCK_SIZE (Results 1 – 6 of 6) sorted by relevance
| /Linux-v5.4/crypto/ |
| D | xts.c | 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() [all …]
|
| /Linux-v5.4/arch/x86/crypto/ |
| D | glue_helper.c | 265 const bool cts = (req->cryptlen % XTS_BLOCK_SIZE); in glue_xts_req_128bit() 273 if (req->cryptlen < XTS_BLOCK_SIZE) in glue_xts_req_128bit() 279 tail = req->cryptlen % XTS_BLOCK_SIZE + XTS_BLOCK_SIZE; in glue_xts_req_128bit() 321 next_tweak = memcpy(b, req->iv, XTS_BLOCK_SIZE); in glue_xts_req_128bit() 327 skcipher_request_set_crypt(&subreq, src, dst, XTS_BLOCK_SIZE, in glue_xts_req_128bit() 336 scatterwalk_map_and_copy(b, dst, 0, XTS_BLOCK_SIZE, 0); in glue_xts_req_128bit() 337 memcpy(b + 1, b, tail - XTS_BLOCK_SIZE); in glue_xts_req_128bit() 338 scatterwalk_map_and_copy(b, src, XTS_BLOCK_SIZE, in glue_xts_req_128bit() 339 tail - XTS_BLOCK_SIZE, 0); in glue_xts_req_128bit() 342 skcipher_request_set_crypt(&subreq, dst, dst, XTS_BLOCK_SIZE, in glue_xts_req_128bit()
|
| /Linux-v5.4/include/crypto/ |
| D | xts.h | 9 #define XTS_BLOCK_SIZE 16 macro
|
| /Linux-v5.4/drivers/crypto/vmx/ |
| D | aes_xts.c | 87 if (!crypto_simd_usable() || (req->cryptlen % XTS_BLOCK_SIZE) != 0) { in p8_aes_xts_crypt()
|
| /Linux-v5.4/drivers/crypto/inside-secure/ |
| D | safexcel_cipher.c | 2025 if (req->cryptlen < XTS_BLOCK_SIZE) in safexcel_encrypt_xts() 2033 if (req->cryptlen < XTS_BLOCK_SIZE) in safexcel_decrypt_xts() 2049 .ivsize = XTS_BLOCK_SIZE, 2056 .cra_blocksize = XTS_BLOCK_SIZE,
|
| /Linux-v5.4/arch/s390/crypto/ |
| D | aes_s390.c | 592 if (unlikely(!xts_ctx->fc || (nbytes % XTS_BLOCK_SIZE) != 0)) in xts_aes_encrypt() 609 if (unlikely(!xts_ctx->fc || (nbytes % XTS_BLOCK_SIZE) != 0)) in xts_aes_decrypt()
|