On Wed, Feb 01, 2023 at 05:43:00PM +0800, Tianjia Zhang wrote: > > It seems that only need to fix the loop condition, so if change the > loop condition of the code just now to > while (walk.nbytes && walk.nbytes != walk.total), in this way, the > last chunk cryption is separated out of the loop, which will be clearer > logically. What is your opinion? Yes that should work. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt