summaryrefslogtreecommitdiff
path: root/crypto/authencesn.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2017-10-07 11:29:48 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2017-10-07 12:04:32 +0800
commit75b192a19c70ec09e68484d7741a99438bbef306 (patch)
tree5843151d088133bd638c69283b2b351465639d11 /crypto/authencesn.c
parent9c6caa349a0e05500a378295874d16fc280bbb78 (diff)
downloadlinux-crypto-75b192a19c70ec09e68484d7741a99438bbef306.tar.gz
linux-crypto-75b192a19c70ec09e68484d7741a99438bbef306.zip
crypto: skcipher - Fix crash on zero-length input
The skcipher walk interface doesn't handle zero-length input properly as the old blkcipher walk interface did. This is due to the fact that the length check is done too late. This patch moves the length check forward so that it does the right thing. Fixes: d18b9adbc195 ("crypto: skcipher - Add skcipher walk...") Cc: <stable@vger.kernel.org> Reported-by: Stephan Müller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/authencesn.c')
0 files changed, 0 insertions, 0 deletions