]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd9db4dc5d69ead6ce7e6220124d86287893f8c47
tree655b362b754a0299cbaf3e8bcc8f84b30d4ab5a1
parent8d94e164eb5ee0a29af21755cf74616ae9ec0bd8
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: 93692bb1edc7 ("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