Lines Matching refs:blocks
75 int rounds, int blocks);
77 int rounds, int blocks);
80 int rounds, int blocks, u8 iv[]);
82 int rounds, int blocks, u8 iv[]);
90 int rounds, int blocks, u8 ctr[]);
100 int rounds, int blocks, u8 iv[],
103 int rounds, int blocks, u8 iv[],
107 int blocks, u8 dg[], int enc_before,
179 unsigned int blocks; in ecb_encrypt() local
183 while ((blocks = (walk.nbytes / AES_BLOCK_SIZE))) { in ecb_encrypt()
186 ctx->key_enc, rounds, blocks); in ecb_encrypt()
199 unsigned int blocks; in ecb_decrypt() local
203 while ((blocks = (walk.nbytes / AES_BLOCK_SIZE))) { in ecb_decrypt()
206 ctx->key_dec, rounds, blocks); in ecb_decrypt()
219 unsigned int blocks; in cbc_encrypt_walk() local
221 while ((blocks = (walk->nbytes / AES_BLOCK_SIZE))) { in cbc_encrypt_walk()
224 ctx->key_enc, rounds, blocks, walk->iv); in cbc_encrypt_walk()
248 unsigned int blocks; in cbc_decrypt_walk() local
250 while ((blocks = (walk->nbytes / AES_BLOCK_SIZE))) { in cbc_decrypt_walk()
253 ctx->key_dec, rounds, blocks, walk->iv); in cbc_decrypt_walk()
407 unsigned int blocks; in essiv_cbc_encrypt() local
411 blocks = walk.nbytes / AES_BLOCK_SIZE; in essiv_cbc_encrypt()
412 if (blocks) { in essiv_cbc_encrypt()
415 ctx->key1.key_enc, rounds, blocks, in essiv_cbc_encrypt()
429 unsigned int blocks; in essiv_cbc_decrypt() local
433 blocks = walk.nbytes / AES_BLOCK_SIZE; in essiv_cbc_decrypt()
434 if (blocks) { in essiv_cbc_decrypt()
437 ctx->key1.key_dec, rounds, blocks, in essiv_cbc_decrypt()
451 int blocks; in ctr_encrypt() local
455 while ((blocks = (walk.nbytes / AES_BLOCK_SIZE))) { in ctr_encrypt()
458 ctx->key_enc, rounds, blocks, walk.iv); in ctr_encrypt()
471 blocks = -1; in ctr_encrypt()
475 blocks, walk.iv); in ctr_encrypt()
849 static void mac_do_update(struct crypto_aes_ctx *ctx, u8 const in[], int blocks, in mac_do_update() argument
856 aes_mac_update(in, ctx->key_enc, rounds, blocks, dg, enc_before, in mac_do_update()
863 while (blocks--) { in mac_do_update()
867 if (blocks || enc_after) in mac_do_update()
884 int blocks = len / AES_BLOCK_SIZE; in mac_update() local
888 mac_do_update(&tctx->key, p, blocks, ctx->dg, in mac_update()
891 p += blocks * AES_BLOCK_SIZE; in mac_update()