Lines Matching refs:AES_BLOCK_SIZE

47 	u8	rk[13 * (8 * AES_BLOCK_SIZE) + 32] __aligned(AES_BLOCK_SIZE);
97 while (walk.nbytes >= AES_BLOCK_SIZE) { in __ecb_crypt()
98 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in __ecb_crypt()
102 walk.stride / AES_BLOCK_SIZE); in __ecb_crypt()
109 walk.nbytes - blocks * AES_BLOCK_SIZE); in __ecb_crypt()
166 while (walk.nbytes >= AES_BLOCK_SIZE) { in cbc_decrypt()
167 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in cbc_decrypt()
171 walk.stride / AES_BLOCK_SIZE); in cbc_decrypt()
179 walk.nbytes - blocks * AES_BLOCK_SIZE); in cbc_decrypt()
225 u8 buf[AES_BLOCK_SIZE]; in ctr_encrypt()
231 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in ctr_encrypt()
232 u8 *final = (walk.total % AES_BLOCK_SIZE) ? buf : NULL; in ctr_encrypt()
236 walk.stride / AES_BLOCK_SIZE); in ctr_encrypt()
246 u8 *dst = walk.dst.virt.addr + blocks * AES_BLOCK_SIZE; in ctr_encrypt()
247 u8 *src = walk.src.virt.addr + blocks * AES_BLOCK_SIZE; in ctr_encrypt()
250 walk.total % AES_BLOCK_SIZE); in ctr_encrypt()
256 walk.nbytes - blocks * AES_BLOCK_SIZE); in ctr_encrypt()
335 int tail = req->cryptlen % AES_BLOCK_SIZE; in __xts_crypt()
337 u8 buf[2 * AES_BLOCK_SIZE]; in __xts_crypt()
341 if (req->cryptlen < AES_BLOCK_SIZE) in __xts_crypt()
360 while (walk.nbytes >= AES_BLOCK_SIZE) { in __xts_crypt()
361 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in __xts_crypt()
366 walk.stride / AES_BLOCK_SIZE); in __xts_crypt()
375 walk.nbytes - blocks * AES_BLOCK_SIZE); in __xts_crypt()
382 scatterwalk_map_and_copy(buf, req->dst, req->cryptlen - AES_BLOCK_SIZE, in __xts_crypt()
383 AES_BLOCK_SIZE, 0); in __xts_crypt()
384 memcpy(buf + AES_BLOCK_SIZE, buf, tail); in __xts_crypt()
387 crypto_xor(buf, req->iv, AES_BLOCK_SIZE); in __xts_crypt()
394 crypto_xor(buf, req->iv, AES_BLOCK_SIZE); in __xts_crypt()
396 scatterwalk_map_and_copy(buf, req->dst, req->cryptlen - AES_BLOCK_SIZE, in __xts_crypt()
397 AES_BLOCK_SIZE + tail, 1); in __xts_crypt()
415 .base.cra_blocksize = AES_BLOCK_SIZE,
422 .walksize = 8 * AES_BLOCK_SIZE,
430 .base.cra_blocksize = AES_BLOCK_SIZE,
439 .walksize = 8 * AES_BLOCK_SIZE,
440 .ivsize = AES_BLOCK_SIZE,
455 .chunksize = AES_BLOCK_SIZE,
456 .walksize = 8 * AES_BLOCK_SIZE,
457 .ivsize = AES_BLOCK_SIZE,
471 .chunksize = AES_BLOCK_SIZE,
472 .walksize = 8 * AES_BLOCK_SIZE,
473 .ivsize = AES_BLOCK_SIZE,
481 .base.cra_blocksize = AES_BLOCK_SIZE,
490 .walksize = 8 * AES_BLOCK_SIZE,
491 .ivsize = AES_BLOCK_SIZE,