crypto: chcr - Fix key length for RFC4106
authorHarsh Jain <harsh@chelsio.com>
Fri, 27 Jan 2017 10:39:06 +0000 (16:09 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Feb 2017 10:09:31 +0000 (18:09 +0800)
commit7c2cf1c4615cc2f576d0604406cdf0065f00b83b
tree08407f9ebbdac1343473259b8d5099d6089527af
parent0b529f143e8baad441a5aac9ad55ec2434d8fb46
crypto: chcr - Fix key length for RFC4106

Check keylen before copying salt to avoid wrap around of Integer.

Signed-off-by: Harsh Jain <harsh@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_algo.c