]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb6659c13053558ac112a166cc9127e0e9ac19b46
tree849921f0fa7a5b61586651f39251313b8c44d014
parenta59a883139724a996402f53d42c41969f85814be
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