Lines Matching refs:AES_BLOCK_SIZE
46 u8 rk[13 * (8 * AES_BLOCK_SIZE) + 32] __aligned(AES_BLOCK_SIZE);
96 while (walk.nbytes >= AES_BLOCK_SIZE) { in __ecb_crypt()
97 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in __ecb_crypt()
101 walk.stride / AES_BLOCK_SIZE); in __ecb_crypt()
108 walk.nbytes - blocks * AES_BLOCK_SIZE); in __ecb_crypt()
170 while (walk.nbytes >= AES_BLOCK_SIZE) { in cbc_decrypt()
171 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in cbc_decrypt()
175 walk.stride / AES_BLOCK_SIZE); in cbc_decrypt()
183 walk.nbytes - blocks * AES_BLOCK_SIZE); in cbc_decrypt()
236 u8 buf[AES_BLOCK_SIZE]; in ctr_encrypt()
242 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in ctr_encrypt()
243 u8 *final = (walk.total % AES_BLOCK_SIZE) ? buf : NULL; in ctr_encrypt()
247 walk.stride / AES_BLOCK_SIZE); in ctr_encrypt()
257 u8 *dst = walk.dst.virt.addr + blocks * AES_BLOCK_SIZE; in ctr_encrypt()
258 u8 *src = walk.src.virt.addr + blocks * AES_BLOCK_SIZE; in ctr_encrypt()
261 walk.total % AES_BLOCK_SIZE); in ctr_encrypt()
267 walk.nbytes - blocks * AES_BLOCK_SIZE); in ctr_encrypt()
346 int tail = req->cryptlen % AES_BLOCK_SIZE; in __xts_crypt()
348 u8 buf[2 * AES_BLOCK_SIZE]; in __xts_crypt()
352 if (req->cryptlen < AES_BLOCK_SIZE) in __xts_crypt()
371 while (walk.nbytes >= AES_BLOCK_SIZE) { in __xts_crypt()
372 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in __xts_crypt()
377 walk.stride / AES_BLOCK_SIZE); in __xts_crypt()
386 walk.nbytes - blocks * AES_BLOCK_SIZE); in __xts_crypt()
393 scatterwalk_map_and_copy(buf, req->dst, req->cryptlen - AES_BLOCK_SIZE, in __xts_crypt()
394 AES_BLOCK_SIZE, 0); in __xts_crypt()
395 memcpy(buf + AES_BLOCK_SIZE, buf, tail); in __xts_crypt()
398 crypto_xor(buf, req->iv, AES_BLOCK_SIZE); in __xts_crypt()
405 crypto_xor(buf, req->iv, AES_BLOCK_SIZE); in __xts_crypt()
407 scatterwalk_map_and_copy(buf, req->dst, req->cryptlen - AES_BLOCK_SIZE, in __xts_crypt()
408 AES_BLOCK_SIZE + tail, 1); in __xts_crypt()
426 .base.cra_blocksize = AES_BLOCK_SIZE,
433 .walksize = 8 * AES_BLOCK_SIZE,
441 .base.cra_blocksize = AES_BLOCK_SIZE,
448 .walksize = 8 * AES_BLOCK_SIZE,
449 .ivsize = AES_BLOCK_SIZE,
466 .chunksize = AES_BLOCK_SIZE,
467 .walksize = 8 * AES_BLOCK_SIZE,
468 .ivsize = AES_BLOCK_SIZE,
482 .chunksize = AES_BLOCK_SIZE,
483 .walksize = 8 * AES_BLOCK_SIZE,
484 .ivsize = AES_BLOCK_SIZE,
492 .base.cra_blocksize = AES_BLOCK_SIZE,
499 .walksize = 8 * AES_BLOCK_SIZE,
500 .ivsize = AES_BLOCK_SIZE,