diff options
author | Herbert Xu | 2017-10-07 11:29:48 +0800 |
---|---|---|
committer | Herbert Xu | 2017-10-07 12:04:32 +0800 |
commit | 0cabf2af6f5ac3c88cb106c4e06087a5a39b8e1e (patch) | |
tree | 6d612f29ee44e877b4fb546898f729f135ac9900 /crypto/ecdh_helper.c | |
parent | 9039f3ef446e9ffa200200c934f049add9e58426 (diff) |
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: b286d8b1a690 ("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/ecdh_helper.c')
0 files changed, 0 insertions, 0 deletions