Lines Matching refs:blocks

58 				int rounds, int blocks, int first);
60 int rounds, int blocks, int first);
63 int rounds, int blocks, u8 iv[], int first);
65 int rounds, int blocks, u8 iv[], int first);
68 int rounds, int blocks, u8 ctr[], int first);
71 int rounds, int blocks, u8 const rk2[], u8 iv[],
74 int rounds, int blocks, u8 const rk2[], u8 iv[],
105 unsigned int blocks; in ecb_encrypt() local
112 for (first = 1; (blocks = (walk.nbytes / AES_BLOCK_SIZE)); first = 0) { in ecb_encrypt()
114 (u8 *)ctx->key_enc, rounds, blocks, first); in ecb_encrypt()
127 unsigned int blocks; in ecb_decrypt() local
134 for (first = 1; (blocks = (walk.nbytes / AES_BLOCK_SIZE)); first = 0) { in ecb_decrypt()
136 (u8 *)ctx->key_dec, rounds, blocks, first); in ecb_decrypt()
149 unsigned int blocks; in cbc_encrypt() local
156 for (first = 1; (blocks = (walk.nbytes / AES_BLOCK_SIZE)); first = 0) { in cbc_encrypt()
158 (u8 *)ctx->key_enc, rounds, blocks, walk.iv, in cbc_encrypt()
172 unsigned int blocks; in cbc_decrypt() local
179 for (first = 1; (blocks = (walk.nbytes / AES_BLOCK_SIZE)); first = 0) { in cbc_decrypt()
181 (u8 *)ctx->key_dec, rounds, blocks, walk.iv, in cbc_decrypt()
195 int blocks; in ctr_encrypt() local
203 while ((blocks = (walk.nbytes / AES_BLOCK_SIZE))) { in ctr_encrypt()
205 (u8 *)ctx->key_enc, rounds, blocks, walk.iv, in ctr_encrypt()
208 nbytes -= blocks * AES_BLOCK_SIZE; in ctr_encrypt()
215 u8 *tdst = walk.dst.virt.addr + blocks * AES_BLOCK_SIZE; in ctr_encrypt()
216 u8 *tsrc = walk.src.virt.addr + blocks * AES_BLOCK_SIZE; in ctr_encrypt()
223 blocks = (nbytes <= 8) ? -1 : 1; in ctr_encrypt()
226 blocks, walk.iv, first); in ctr_encrypt()
241 unsigned int blocks; in xts_encrypt() local
248 for (first = 1; (blocks = (walk.nbytes / AES_BLOCK_SIZE)); first = 0) { in xts_encrypt()
250 (u8 *)ctx->key1.key_enc, rounds, blocks, in xts_encrypt()
265 unsigned int blocks; in xts_decrypt() local
272 for (first = 1; (blocks = (walk.nbytes / AES_BLOCK_SIZE)); first = 0) { in xts_decrypt()
274 (u8 *)ctx->key1.key_dec, rounds, blocks, in xts_decrypt()