OSDN Git Service

crypto: inside-secure - fix zeroing of the request in ahash_exit_inv
authorAntoine Tenart <antoine.tenart@bootlin.com>
Mon, 27 May 2019 14:51:01 +0000 (16:51 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 6 Jun 2019 06:38:56 +0000 (14:38 +0800)
commitb926213d6fede9c9427d7c12eaf7d9f0895deb4e
treecc1b5e95239688d50027b31d549194eedda3bfc1
parentaa52428698aeb1c1d4ebb7c3e9de3e7bdce25704
crypto: inside-secure - fix zeroing of the request in ahash_exit_inv

A request is zeroed in safexcel_ahash_exit_inv(). This request total
size is EIP197_AHASH_REQ_SIZE while the memset zeroing it uses
sizeof(struct ahash_request), which happens to be less than
EIP197_AHASH_REQ_SIZE. This patch fixes it.

Fixes: f6beaea30487 ("crypto: inside-secure - authenc(hmac(sha256), cbc(aes)) support")
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel_hash.c