]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: skcipher - Add missing API setkey checks
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 9 May 2017 19:48:23 +0000 (03:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Jun 2017 10:10:07 +0000 (12:10 +0200)
commitf5eef8d2458bb569ca521b3c2b0a19af62536745
treec8df8f701e7a912236c68c5639a49d02813b3f6e
parent2da7518890d83a7fc94de41f1bcf7d24b9e13fa9
crypto: skcipher - Add missing API setkey checks

commit 9933e113c2e87a9f46a40fde8dafbf801dca1ab9 upstream.

The API setkey checks for key sizes and alignment went AWOL during the
skcipher conversion.  This patch restores them.

Fixes: 4e6c3df4d729 ("crypto: skcipher - Add low-level skcipher...")
Reported-by: Baozeng <sploving1@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/skcipher.c