DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] crypto/qat: fix not set status in RSA decryption
@ 2021-10-21 10:05 Arek Kusztal
  2021-10-21 13:12 ` Zhang, Roy Fan
  0 siblings, 1 reply; 3+ messages in thread
From: Arek Kusztal @ 2021-10-21 10:05 UTC (permalink / raw)
  To: dev; +Cc: gakhil, roy.fan.zhang, Arek Kusztal, stable

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

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

Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] crypto/qat: fix not set status in RSA decryption
  2021-10-21 10:05 [dpdk-dev] [PATCH] crypto/qat: fix not set status in RSA decryption Arek Kusztal
@ 2021-10-21 13:12 ` Zhang, Roy Fan
  2021-10-31 19:31   ` Akhil Goyal
  0 siblings, 1 reply; 3+ messages in thread
From: Zhang, Roy Fan @ 2021-10-21 13:12 UTC (permalink / raw)
  To: Kusztal, ArkadiuszX, dev; +Cc: gakhil, stable

> -----Original Message-----
> From: Kusztal, ArkadiuszX <arkadiuszx.kusztal@intel.com>
> Sent: Thursday, October 21, 2021 11:06 AM
> To: dev@dpdk.org
> Cc: gakhil@marvell.com; Zhang, Roy Fan <roy.fan.zhang@intel.com>; Kusztal,
> ArkadiuszX <arkadiuszx.kusztal@intel.com>; stable@dpdk.org
> Subject: [PATCH] crypto/qat: fix not set status in RSA decryption
> 
> This commit fixes not set status when decrypting
> with RSA algorithm.
> 
> Fixes: e2c5f4ea994c ("crypto/qat: support RSA in asym")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@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
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] crypto/qat: fix not set status in RSA decryption
  2021-10-21 13:12 ` Zhang, Roy Fan
@ 2021-10-31 19:31   ` Akhil Goyal
  0 siblings, 0 replies; 3+ messages in thread
From: Akhil Goyal @ 2021-10-31 19:31 UTC (permalink / raw)
  To: Zhang, Roy Fan, Kusztal, ArkadiuszX, dev; +Cc: stable

> > Subject: [PATCH] crypto/qat: fix not set status in RSA decryption
> >
> > This commit fixes not set status when decrypting
> > with RSA algorithm.
> >
> > Fixes: e2c5f4ea994c ("crypto/qat: support RSA in asym")
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
> Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
Applied to dpdk-next-crypto
Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-31 19:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-21 10:05 [dpdk-dev] [PATCH] crypto/qat: fix not set status in RSA decryption Arek Kusztal
2021-10-21 13:12 ` Zhang, Roy Fan
2021-10-31 19:31   ` Akhil Goyal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).