Lines Matching refs:nblks

31 			     unsigned int nblks);
41 u8 *iv, unsigned int nblks);
43 u8 *iv, unsigned int nblks);
45 u8 *iv, unsigned int nblks);
125 unsigned int nblks; in sm4_ecb_do_crypt() local
129 nblks = BYTES2BLKS(nbytes); in sm4_ecb_do_crypt()
130 if (nblks) { in sm4_ecb_do_crypt()
131 sm4_ce_crypt(rkey, dst, src, nblks); in sm4_ecb_do_crypt()
132 nbytes -= nblks * SM4_BLOCK_SIZE; in sm4_ecb_do_crypt()
296 unsigned int nblks; in sm4_cfb_encrypt() local
300 nblks = BYTES2BLKS(nbytes); in sm4_cfb_encrypt()
301 if (nblks) { in sm4_cfb_encrypt()
302 sm4_ce_cfb_enc(ctx->rkey_enc, dst, src, walk.iv, nblks); in sm4_cfb_encrypt()
303 dst += nblks * SM4_BLOCK_SIZE; in sm4_cfb_encrypt()
304 src += nblks * SM4_BLOCK_SIZE; in sm4_cfb_encrypt()
305 nbytes -= nblks * SM4_BLOCK_SIZE; in sm4_cfb_encrypt()
338 unsigned int nblks; in sm4_cfb_decrypt() local
342 nblks = BYTES2BLKS(nbytes); in sm4_cfb_decrypt()
343 if (nblks) { in sm4_cfb_decrypt()
344 sm4_ce_cfb_dec(ctx->rkey_enc, dst, src, walk.iv, nblks); in sm4_cfb_decrypt()
345 dst += nblks * SM4_BLOCK_SIZE; in sm4_cfb_decrypt()
346 src += nblks * SM4_BLOCK_SIZE; in sm4_cfb_decrypt()
347 nbytes -= nblks * SM4_BLOCK_SIZE; in sm4_cfb_decrypt()
380 unsigned int nblks; in sm4_ctr_crypt() local
384 nblks = BYTES2BLKS(nbytes); in sm4_ctr_crypt()
385 if (nblks) { in sm4_ctr_crypt()
386 sm4_ce_ctr_enc(ctx->rkey_enc, dst, src, walk.iv, nblks); in sm4_ctr_crypt()
387 dst += nblks * SM4_BLOCK_SIZE; in sm4_ctr_crypt()
388 src += nblks * SM4_BLOCK_SIZE; in sm4_ctr_crypt()
389 nbytes -= nblks * SM4_BLOCK_SIZE; in sm4_ctr_crypt()