]> 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)
commit9adeb636d6f53dbff20f61dbfd95e860222a7c58
tree849921f0fa7a5b61586651f39251313b8c44d014
parent9149094088fbde003f7c515c346f4e6f2a6935f8
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