Lines Matching refs:blocks

28 				   int rounds, int blocks);
30 int rounds, int blocks);
33 int rounds, int blocks, u8 iv[]);
35 int rounds, int blocks, u8 iv[]);
38 int rounds, int blocks, u8 ctr[]);
41 int rounds, int blocks, u8 iv[],
44 int rounds, int blocks, u8 iv[],
171 unsigned int blocks; in ecb_encrypt() local
179 while ((blocks = (walk.nbytes / AES_BLOCK_SIZE))) { in ecb_encrypt()
181 (u8 *)ctx->key_enc, num_rounds(ctx), blocks); in ecb_encrypt()
194 unsigned int blocks; in ecb_decrypt() local
202 while ((blocks = (walk.nbytes / AES_BLOCK_SIZE))) { in ecb_decrypt()
204 (u8 *)ctx->key_dec, num_rounds(ctx), blocks); in ecb_decrypt()
217 unsigned int blocks; in cbc_encrypt() local
225 while ((blocks = (walk.nbytes / AES_BLOCK_SIZE))) { in cbc_encrypt()
227 (u8 *)ctx->key_enc, num_rounds(ctx), blocks, in cbc_encrypt()
241 unsigned int blocks; in cbc_decrypt() local
249 while ((blocks = (walk.nbytes / AES_BLOCK_SIZE))) { in cbc_decrypt()
251 (u8 *)ctx->key_dec, num_rounds(ctx), blocks, in cbc_decrypt()
265 int err, blocks; in ctr_encrypt() local
272 while ((blocks = (walk.nbytes / AES_BLOCK_SIZE))) { in ctr_encrypt()
274 (u8 *)ctx->key_enc, num_rounds(ctx), blocks, in ctr_encrypt()
276 nbytes -= blocks * AES_BLOCK_SIZE; in ctr_encrypt()
283 u8 *tdst = walk.dst.virt.addr + blocks * AES_BLOCK_SIZE; in ctr_encrypt()
284 u8 *tsrc = walk.src.virt.addr + blocks * AES_BLOCK_SIZE; in ctr_encrypt()
291 blocks = (nbytes <= 8) ? -1 : 1; in ctr_encrypt()
294 num_rounds(ctx), blocks, walk.iv); in ctr_encrypt()
309 unsigned int blocks; in xts_encrypt() local
316 for (first = 1; (blocks = (walk.nbytes / AES_BLOCK_SIZE)); first = 0) { in xts_encrypt()
318 (u8 *)ctx->key1.key_enc, rounds, blocks, in xts_encrypt()
334 unsigned int blocks; in xts_decrypt() local
341 for (first = 1; (blocks = (walk.nbytes / AES_BLOCK_SIZE)); first = 0) { in xts_decrypt()
343 (u8 *)ctx->key1.key_dec, rounds, blocks, in xts_decrypt()