Searched refs:XTS_BLOCK_SIZE (Results 1 – 9 of 9) sorted by relevance
/openbmc/qemu/crypto/ |
H A D | xts.c | 31 uint8_t b[XTS_BLOCK_SIZE]; 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() 164 for (; i < XTS_BLOCK_SIZE; i++) { in xts_decrypt() 170 memcpy(dst, &D, XTS_BLOCK_SIZE); in xts_decrypt() 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() [all …]
|
H A D | cipher-nettle.c.inc | 220 QEMU_BUILD_BUG_ON(BLEN != XTS_BLOCK_SIZE); \
|
/openbmc/linux/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() 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() 186 XTS_BLOCK_SIZE, NULL); in xts_cts_final() 247 if (req->cryptlen < XTS_BLOCK_SIZE) in xts_init_crypt() 253 req->cryptlen & ~(XTS_BLOCK_SIZE - 1), NULL); in xts_init_crypt() 383 if (alg->base.cra_blocksize != XTS_BLOCK_SIZE) in xts_create() 426 inst->alg.base.cra_blocksize = XTS_BLOCK_SIZE; in xts_create() [all …]
|
/openbmc/linux/include/crypto/ |
H A D | xts.h | 9 #define XTS_BLOCK_SIZE 16 macro
|
/openbmc/qemu/include/crypto/ |
H A D | xts.h | 30 #define XTS_BLOCK_SIZE 16 macro
|
/openbmc/linux/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()
|
/openbmc/linux/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()
|
/openbmc/linux/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,
|
/openbmc/linux/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()
|