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,
197 unsigned int blocks; in ecb_encrypt() local
201 while ((blocks = (walk.nbytes / AES_BLOCK_SIZE))) { in ecb_encrypt()
204 ctx->key_enc, rounds, blocks); in ecb_encrypt()
217 unsigned int blocks; in ecb_decrypt() local
221 while ((blocks = (walk.nbytes / AES_BLOCK_SIZE))) { in ecb_decrypt()
224 ctx->key_dec, rounds, blocks); in ecb_decrypt()
237 unsigned int blocks; in cbc_encrypt_walk() local
239 while ((blocks = (walk->nbytes / AES_BLOCK_SIZE))) { in cbc_encrypt_walk()
242 ctx->key_enc, rounds, blocks, walk->iv); in cbc_encrypt_walk()
266 unsigned int blocks; in cbc_decrypt_walk() local
268 while ((blocks = (walk->nbytes / AES_BLOCK_SIZE))) { in cbc_decrypt_walk()
271 ctx->key_dec, rounds, blocks, walk->iv); in cbc_decrypt_walk()
425 unsigned int blocks; in essiv_cbc_encrypt() local
429 blocks = walk.nbytes / AES_BLOCK_SIZE; in essiv_cbc_encrypt()
430 if (blocks) { in essiv_cbc_encrypt()
433 ctx->key1.key_enc, rounds, blocks, in essiv_cbc_encrypt()
447 unsigned int blocks; in essiv_cbc_decrypt() local
451 blocks = walk.nbytes / AES_BLOCK_SIZE; in essiv_cbc_decrypt()
452 if (blocks) { in essiv_cbc_decrypt()
455 ctx->key1.key_dec, rounds, blocks, in essiv_cbc_decrypt()
469 int blocks; in ctr_encrypt() local
473 while ((blocks = (walk.nbytes / AES_BLOCK_SIZE))) { in ctr_encrypt()
476 ctx->key_enc, rounds, blocks, walk.iv); in ctr_encrypt()
489 blocks = -1; in ctr_encrypt()
493 blocks, walk.iv); in ctr_encrypt()
872 static void mac_do_update(struct crypto_aes_ctx *ctx, u8 const in[], int blocks, in mac_do_update() argument
879 aes_mac_update(in, ctx->key_enc, rounds, blocks, dg, enc_before, in mac_do_update()
886 while (blocks--) { in mac_do_update()
890 if (blocks || enc_after) in mac_do_update()
907 int blocks = len / AES_BLOCK_SIZE; in mac_update() local
911 mac_do_update(&tctx->key, p, blocks, ctx->dg, in mac_update()
914 p += blocks * AES_BLOCK_SIZE; in mac_update()