Lines Matching refs:AES_BLOCK_SIZE

59 	u8	rk[13 * (8 * AES_BLOCK_SIZE) + 32];
61 } __aligned(AES_BLOCK_SIZE);
105 while (walk.nbytes >= AES_BLOCK_SIZE) { in __ecb_crypt()
106 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in __ecb_crypt()
110 walk.stride / AES_BLOCK_SIZE); in __ecb_crypt()
117 walk.nbytes - blocks * AES_BLOCK_SIZE); in __ecb_crypt()
165 while (walk.nbytes >= AES_BLOCK_SIZE) { in cbc_encrypt()
166 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in cbc_encrypt()
174 err = skcipher_walk_done(&walk, walk.nbytes % AES_BLOCK_SIZE); in cbc_encrypt()
188 while (walk.nbytes >= AES_BLOCK_SIZE) { in cbc_decrypt()
189 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in cbc_decrypt()
193 walk.stride / AES_BLOCK_SIZE); in cbc_decrypt()
201 walk.nbytes - blocks * AES_BLOCK_SIZE); in cbc_decrypt()
217 int blocks = (walk.nbytes / AES_BLOCK_SIZE) & ~7; in ctr_encrypt()
218 int nbytes = walk.nbytes % (8 * AES_BLOCK_SIZE); in ctr_encrypt()
226 dst += blocks * AES_BLOCK_SIZE; in ctr_encrypt()
227 src += blocks * AES_BLOCK_SIZE; in ctr_encrypt()
230 u8 buf[AES_BLOCK_SIZE]; in ctr_encrypt()
233 if (unlikely(nbytes < AES_BLOCK_SIZE)) in ctr_encrypt()
240 if (unlikely(nbytes < AES_BLOCK_SIZE)) in ctr_encrypt()
282 int tail = req->cryptlen % (8 * AES_BLOCK_SIZE); in __xts_crypt()
291 if (req->cryptlen < AES_BLOCK_SIZE) in __xts_crypt()
295 if (unlikely(tail > 0 && tail < AES_BLOCK_SIZE)) { in __xts_crypt()
297 AES_BLOCK_SIZE) - 2; in __xts_crypt()
304 xts_blocks * AES_BLOCK_SIZE, in __xts_crypt()
315 while (walk.nbytes >= AES_BLOCK_SIZE) { in __xts_crypt()
316 int blocks = (walk.nbytes / AES_BLOCK_SIZE) & ~7; in __xts_crypt()
332 out += blocks * AES_BLOCK_SIZE; in __xts_crypt()
333 in += blocks * AES_BLOCK_SIZE; in __xts_crypt()
334 nbytes -= blocks * AES_BLOCK_SIZE; in __xts_crypt()
359 skcipher_request_set_crypt(req, src, dst, AES_BLOCK_SIZE + tail, in __xts_crypt()
396 .base.cra_blocksize = AES_BLOCK_SIZE,
402 .walksize = 8 * AES_BLOCK_SIZE,
410 .base.cra_blocksize = AES_BLOCK_SIZE,
416 .walksize = 8 * AES_BLOCK_SIZE,
417 .ivsize = AES_BLOCK_SIZE,
431 .chunksize = AES_BLOCK_SIZE,
432 .walksize = 8 * AES_BLOCK_SIZE,
433 .ivsize = AES_BLOCK_SIZE,
441 .base.cra_blocksize = AES_BLOCK_SIZE,
447 .walksize = 8 * AES_BLOCK_SIZE,
448 .ivsize = AES_BLOCK_SIZE,