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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 May 2017 05:04:05 +0000 (13:04 +0800)
commit9933e113c2e87a9f46a40fde8dafbf801dca1ab9
tree2dfb79292d8b5799355667d5fbacfbff06d1e2e2
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
crypto: skcipher - Add missing API setkey checks

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

Cc: <stable@vger.kernel.org>
Fixes: 4e6c3df4d729 ("crypto: skcipher - Add low-level skcipher...")
Reported-by: Baozeng <sploving1@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/skcipher.c