Re: [PATCH] cfb8: don't truncate output IV if input is shorter than block size

2019-09-30 Thread Niels Möller
Daiki Ueno writes: > We realized that cfb8_decrypt doesn't update the IV correctly when the > input is shorter than AES block size. The attached patches should fix > it. For testing, I think it would be good to take the testvectors for cfb8, and split into multiple calls to cfb8_*crypt, in

[PATCH] cfb8: don't truncate output IV if input is shorter than block size

2019-09-30 Thread Daiki Ueno
Hello, We realized that cfb8_decrypt doesn't update the IV correctly when the input is shorter than AES block size. The attached patches should fix it. Samba is also affected by this and there are similar fixes: