Herbert Xu 69fba378ed crypto: cbc - Ensure statesize is zero
The cbc template should not be applied on stream ciphers, especially
ones that have internal state.  Enforce this by checking the state
size when the instance is created.

Reported-by: syzbot+050eeedd6c285d8c42f2@syzkaller.appspotmail.com
Fixes: 47309ea13591 ("crypto: arc4 - Add internal state")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2024-02-02 18:08:12 +08:00
..
2023-09-20 13:15:29 +08:00
2023-12-08 11:59:46 +08:00
2024-02-02 18:08:12 +08:00
2023-11-17 19:16:29 +08:00
2021-03-26 19:55:55 +11:00
2023-02-14 13:39:33 +08:00
2023-06-27 15:40:24 +08:00
2023-12-08 11:59:46 +08:00
2023-12-08 11:59:46 +08:00
2020-02-28 08:43:21 +08:00
2023-02-14 13:39:33 +08:00
2022-12-02 18:12:40 +08:00
2022-04-08 16:12:46 +08:00
2023-12-08 11:59:46 +08:00
2022-12-02 18:12:40 +08:00
2023-12-08 11:59:46 +08:00
2023-10-27 18:04:24 +08:00
2022-06-10 16:40:16 +08:00
2021-11-08 16:55:21 -08:00