Lines Matching refs:nbytes
78 unsigned int nbytes) in cts_cbc_encrypt() argument
84 int lastn = nbytes - bsize; in cts_cbc_encrypt()
96 scatterwalk_map_and_copy(s, src, offset, nbytes, 0); in cts_cbc_encrypt()
118 scatterwalk_map_and_copy(d, dst, offset, nbytes, 1); in cts_cbc_encrypt()
127 unsigned int nbytes) in crypto_cts_encrypt() argument
131 int tot_blocks = (nbytes + bsize - 1) / bsize; in crypto_cts_encrypt()
142 } else if (nbytes <= bsize * 2) { in crypto_cts_encrypt()
143 err = cts_cbc_encrypt(ctx, desc, dst, src, 0, nbytes); in crypto_cts_encrypt()
152 nbytes - (cbc_blocks * bsize)); in crypto_cts_encrypt()
164 unsigned int nbytes) in cts_cbc_decrypt() argument
170 int lastn = nbytes - bsize; in cts_cbc_decrypt()
181 scatterwalk_map_and_copy(s, src, offset, nbytes, 0); in cts_cbc_decrypt()
214 scatterwalk_map_and_copy(d, dst, offset, nbytes, 1); in cts_cbc_decrypt()
222 unsigned int nbytes) in crypto_cts_decrypt() argument
226 int tot_blocks = (nbytes + bsize - 1) / bsize; in crypto_cts_decrypt()
237 } else if (nbytes <= bsize * 2) { in crypto_cts_decrypt()
238 err = cts_cbc_decrypt(ctx, desc, dst, src, 0, nbytes); in crypto_cts_decrypt()
247 nbytes - (cbc_blocks * bsize)); in crypto_cts_decrypt()