[PATCH 2/3] crypto: qce: re-initialize context on import

2020-06-21 Thread Sivaprakash Murugesan
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 --- drivers/crypto/qce/sha.c | 16 1 file changed, 12

[PATCH 1/3] crypto: qce: support zero length test vectors

2020-06-21 Thread Sivaprakash Murugesan
crypto test module passes zero length vectors as test input to sha-1 and sha-256. To provide correct output for these vectors, hash zero support has been added as in other crypto drivers. Signed-off-by: Sivaprakash Murugesan --- drivers/crypto/Kconfig | 2 ++ drivers/crypto/qce/common.h

[PATCH 3/3] crypto: qce: sha: Do not modify scatterlist passed along with request

2020-06-21 Thread Sivaprakash Murugesan
s are higher. To avoid this, in qce do not mark the end of scatterlist in update API, the qce_ahash_async_req_handle API already takes care of this copying right amount of buffer from the request scatter list. Signed-off-by: Sivaprakash Murugesan --- drivers/crypto/qce/sha.c | 2 -- 1 file chang

[PATCH 0/3] qce crypto fixes for tcrypto failures

2020-06-21 Thread Sivaprakash Murugesan
while running tcrypto test cases on qce crypto engine few failures are noticed, this is mainly because of the updates on tcrypto driver and not testing qce reqgularly with mainline tcrypto driver. This series tries to address few of the errors while running tcrypto on qce. Sivaprakash Murugesan