Skip to content
Commit 69fba378 authored by Herbert Xu's avatar Herbert Xu
Browse files

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: default avatar <syzbot+050eeedd6c285d8c42f2@syzkaller.appspotmail.com>
Fixes: 47309ea1

 ("crypto: arc4 - Add internal state")
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent ccb88e95
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment