Home
last modified time | relevance | path

Searched refs:lastn (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.1/crypto/
Dcts.c107 int lastn; in cts_cbc_encrypt() local
110 lastn = req->cryptlen - offset; in cts_cbc_encrypt()
116 scatterwalk_map_and_copy(d, req->src, offset, lastn, 0); in cts_cbc_encrypt()
118 scatterwalk_map_and_copy(d, sg, 0, bsize + lastn, 1); in cts_cbc_encrypt()
189 int lastn; in cts_cbc_decrypt() local
192 lastn = req->cryptlen - offset; in cts_cbc_decrypt()
202 scatterwalk_map_and_copy(d, req->src, offset, lastn, 0); in cts_cbc_decrypt()
205 crypto_xor(d + bsize, d, lastn); in cts_cbc_decrypt()
208 memcpy(d + lastn, d + bsize + lastn, bsize - lastn); in cts_cbc_decrypt()
211 scatterwalk_map_and_copy(d, sg, 0, bsize + lastn, 1); in cts_cbc_decrypt()