Lines Matching refs:AES_BLOCK_SIZE

60 	u8	rk[13 * (8 * AES_BLOCK_SIZE) + 32];
62 } __aligned(AES_BLOCK_SIZE);
106 while (walk.nbytes >= AES_BLOCK_SIZE) { in __ecb_crypt()
107 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in __ecb_crypt()
111 walk.stride / AES_BLOCK_SIZE); in __ecb_crypt()
118 walk.nbytes - blocks * AES_BLOCK_SIZE); in __ecb_crypt()
166 while (walk.nbytes >= AES_BLOCK_SIZE) { in cbc_encrypt()
167 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in cbc_encrypt()
175 err = skcipher_walk_done(&walk, walk.nbytes % AES_BLOCK_SIZE); in cbc_encrypt()
189 while (walk.nbytes >= AES_BLOCK_SIZE) { in cbc_decrypt()
190 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in cbc_decrypt()
194 walk.stride / AES_BLOCK_SIZE); in cbc_decrypt()
202 walk.nbytes - blocks * AES_BLOCK_SIZE); in cbc_decrypt()
218 int blocks = (walk.nbytes / AES_BLOCK_SIZE) & ~7; in ctr_encrypt()
219 int nbytes = walk.nbytes % (8 * AES_BLOCK_SIZE); in ctr_encrypt()
227 dst += blocks * AES_BLOCK_SIZE; in ctr_encrypt()
228 src += blocks * AES_BLOCK_SIZE; in ctr_encrypt()
231 u8 buf[AES_BLOCK_SIZE]; in ctr_encrypt()
234 if (unlikely(nbytes < AES_BLOCK_SIZE)) in ctr_encrypt()
241 if (unlikely(nbytes < AES_BLOCK_SIZE)) in ctr_encrypt()
283 int tail = req->cryptlen % (8 * AES_BLOCK_SIZE); in __xts_crypt()
292 if (req->cryptlen < AES_BLOCK_SIZE) in __xts_crypt()
296 if (unlikely(tail > 0 && tail < AES_BLOCK_SIZE)) { in __xts_crypt()
298 AES_BLOCK_SIZE) - 2; in __xts_crypt()
305 xts_blocks * AES_BLOCK_SIZE, in __xts_crypt()
316 while (walk.nbytes >= AES_BLOCK_SIZE) { in __xts_crypt()
317 int blocks = (walk.nbytes / AES_BLOCK_SIZE) & ~7; in __xts_crypt()
333 out += blocks * AES_BLOCK_SIZE; in __xts_crypt()
334 in += blocks * AES_BLOCK_SIZE; in __xts_crypt()
335 nbytes -= blocks * AES_BLOCK_SIZE; in __xts_crypt()
360 skcipher_request_set_crypt(req, src, dst, AES_BLOCK_SIZE + tail, in __xts_crypt()
397 .base.cra_blocksize = AES_BLOCK_SIZE,
403 .walksize = 8 * AES_BLOCK_SIZE,
411 .base.cra_blocksize = AES_BLOCK_SIZE,
417 .walksize = 8 * AES_BLOCK_SIZE,
418 .ivsize = AES_BLOCK_SIZE,
432 .chunksize = AES_BLOCK_SIZE,
433 .walksize = 8 * AES_BLOCK_SIZE,
434 .ivsize = AES_BLOCK_SIZE,
442 .base.cra_blocksize = AES_BLOCK_SIZE,
448 .walksize = 8 * AES_BLOCK_SIZE,
449 .ivsize = AES_BLOCK_SIZE,