[dpdk-dev] [PATCH] crypto/qat: fix not set status in RSA decryption

Arek Kusztal arkadiuszx.kusztal at intel.com
Thu Oct 21 12:05:43 CEST 2021


This commit fixes not set status when decrypting
with RSA algorithm.

Fixes: e2c5f4ea994c ("crypto/qat: support RSA in asym")
Cc: stable at dpdk.org

Signed-off-by: Arek Kusztal <arkadiuszx.kusztal at intel.com>
---
 drivers/crypto/qat/qat_asym.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/crypto/qat/qat_asym.c b/drivers/crypto/qat/qat_asym.c
index 85973812a8..983c639d68 100644
--- a/drivers/crypto/qat/qat_asym.c
+++ b/drivers/crypto/qat/qat_asym.c
@@ -629,6 +629,8 @@ static void qat_asym_collect_response(struct rte_crypto_op *rx_op,
 					rte_memcpy(rsa_result,
 						cookie->output_array[0],
 						alg_size_in_bytes);
+					rx_op->status =
+						RTE_CRYPTO_OP_STATUS_SUCCESS;
 					break;
 				default:
 					QAT_LOG(ERR, "Padding not supported");
-- 
2.21.3



More information about the dev mailing list