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()
271 int tail = req->cryptlen % (8 * AES_BLOCK_SIZE); in __xts_crypt()
280 if (req->cryptlen < AES_BLOCK_SIZE) in __xts_crypt()
284 if (unlikely(tail > 0 && tail < AES_BLOCK_SIZE)) { in __xts_crypt()
286 AES_BLOCK_SIZE) - 2; in __xts_crypt()
293 xts_blocks * AES_BLOCK_SIZE, in __xts_crypt()
304 while (walk.nbytes >= AES_BLOCK_SIZE) { in __xts_crypt()
305 int blocks = (walk.nbytes / AES_BLOCK_SIZE) & ~7; in __xts_crypt()
321 out += blocks * AES_BLOCK_SIZE; in __xts_crypt()
322 in += blocks * AES_BLOCK_SIZE; in __xts_crypt()
323 nbytes -= blocks * AES_BLOCK_SIZE; in __xts_crypt()
348 skcipher_request_set_crypt(req, src, dst, AES_BLOCK_SIZE + tail, in __xts_crypt()
385 .base.cra_blocksize = AES_BLOCK_SIZE,
391 .walksize = 8 * AES_BLOCK_SIZE,
399 .base.cra_blocksize = AES_BLOCK_SIZE,
405 .walksize = 8 * AES_BLOCK_SIZE,
406 .ivsize = AES_BLOCK_SIZE,
420 .chunksize = AES_BLOCK_SIZE,
421 .walksize = 8 * AES_BLOCK_SIZE,
422 .ivsize = AES_BLOCK_SIZE,
430 .base.cra_blocksize = AES_BLOCK_SIZE,
436 .walksize = 8 * AES_BLOCK_SIZE,
437 .ivsize = AES_BLOCK_SIZE,