crypto: inside-secure - do not use areq->result for partial results
authorAntoine Ténart <antoine.tenart@free-electrons.com>
Mon, 11 Dec 2017 11:10:58 +0000 (12:10 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Dec 2017 08:48:01 +0000 (19:48 +1100)
commit2973633e9f09311e849f975d969737af81a521ff
tree655b362b754a0299cbaf3e8bcc8f84b30d4ab5a1
parent7cad2fabd5691dbb17762877d4e7f236fe4bc181
crypto: inside-secure - do not use areq->result for partial results

This patches update the SafeXcel driver to stop using the crypto
ahash_request result field for partial results (i.e. on updates).
Instead the driver local safexcel_ahash_req state field is used, and
only on final operations the ahash_request result buffer is updated.

Fixes: 1b44c5a60c13 ("crypto: inside-secure - add SafeXcel EIP197 crypto engine driver")
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel_hash.c