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:07:46 +0000 (12:07 +0200)
commit4472887cbd1373d7781bea9d8935f2d4968dd580
treeada6fb0eabc15708d082126a3ab7c4339d4515a6
parent63399974effb65d755a94edd10f33cd74e5a1b77
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