Home
last modified time | relevance | path

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

/openbmc/qemu/crypto/
H A Dxts.c31 uint8_t b[XTS_BLOCK_SIZE];
93 func(ctx, XTS_BLOCK_SIZE, dst->b, dst->b); in xts_tweak_encdec()
128 encfunc(tweakctx, XTS_BLOCK_SIZE, T.b, iv); in xts_decrypt()
141 memcpy(&D, src, XTS_BLOCK_SIZE); in xts_decrypt()
143 memcpy(dst, &D, XTS_BLOCK_SIZE); in xts_decrypt()
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()
161 CC.b[i] = src[XTS_BLOCK_SIZE + i]; in xts_decrypt()
[all …]
H A Dcipher-nettle.c.inc220 QEMU_BUILD_BUG_ON(BLEN != XTS_BLOCK_SIZE); \
/openbmc/linux/crypto/
H A Dxts.c87 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 + tail, 1); in xts_cts_final()
[all …]
/openbmc/linux/include/crypto/
H A Dxts.h9 #define XTS_BLOCK_SIZE 16 macro
/openbmc/qemu/include/crypto/
H A Dxts.h30 #define XTS_BLOCK_SIZE 16 macro
/openbmc/linux/drivers/crypto/vmx/
H A Daes_xts.c90 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 Dqat_algs.c1072 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 Dsafexcel_cipher.c2538 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 Datmel-aes.c1097 if (req->cryptlen < XTS_BLOCK_SIZE) in atmel_aes_crypt()
1100 if (!IS_ALIGNED(req->cryptlen, XTS_BLOCK_SIZE)) in atmel_aes_crypt()