Skip to content
Snippets Groups Projects
Commit 7cfc2ab3 authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: lskcipher - Copy IV in lskcipher glue code always


The lskcipher glue code for skcipher needs to copy the IV every
time rather than only on the first and last request.  Otherwise
those algorithms that use IV to perform chaining may break, e.g.,
CBC.

This is because crypto_skcipher_import/export do not include the
IV as part of the saved state.

Reported-by: default avatar <syzbot+b90b904ef6bdfdafec1d@syzkaller.appspotmail.com>
Fixes: 662ea18d ("crypto: skcipher - Make use of internal state")
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent c0ec2a71
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment