crypto: qce - re-initialize context on import
authorSivaprakash Murugesan <sivaprak@codeaurora.org>
Mon, 22 Jun 2020 06:15:05 +0000 (11:45 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Jul 2020 04:18:34 +0000 (14:18 +1000)
commita668ee56ff028139a0926e4d2248c9a573858ba0
tree849921f0fa7a5b61586651f39251313b8c44d014
parent8ac1b9ccbfbaeacc0c33433e3e7825593bda366e
crypto: qce - re-initialize context on import

crypto testmgr deliberately corrupts the request context while passing
vectors to the import. This is to make sure that drivers do not rely on
request but they take all the necessary input from io vec passed to it.

qce casts the request context from request parameter, since it is corrupted
the sub squent hash request fails and qce hangs.

To avoid this re-initialize request context on import. The qce import
API alreasy takes care of taking the input vectors from passed io vec.

Signed-off-by: Sivaprakash Murugesan <sivaprak@codeaurora.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qce/sha.c