On 2/1/23 5:50 PM, Herbert Xu wrote:
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,
Thanks, I will rewrite the loop in this form. Best regards, Tianjia