* [dpdk-dev] [PATCH] crypto/qat: fix computation of cd ptr in zuc
@ 2020-04-27 14:39 Arek Kusztal
2020-04-27 17:41 ` Trahe, Fiona
0 siblings, 1 reply; 2+ messages in thread
From: Arek Kusztal @ 2020-04-27 14:39 UTC (permalink / raw)
To: dev, fiona.trahe; +Cc: Arek Kusztal, stable
Offset of cd pointer is too big by state1size + state2size,
so few extra unnecessary bytes will be copied into cd.
Fixes: d9b7d5bbc845 ("crypto/qat: add ZUC EEA3/EIA3 capability")
Cc: stable@dpdk.org
Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
---
drivers/crypto/qat/qat_sym_session.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/crypto/qat/qat_sym_session.c b/drivers/crypto/qat/qat_sym_session.c
index fd2cc38..ebca579 100644
--- a/drivers/crypto/qat/qat_sym_session.c
+++ b/drivers/crypto/qat/qat_sym_session.c
@@ -1803,8 +1803,7 @@ int qat_sym_session_aead_create_cd_auth(struct qat_sym_session *cdesc,
+ ICP_QAT_HW_ZUC_3G_EEA3_IV_SZ);
memcpy(cdesc->cd_cur_ptr + state1_size, authkey, authkeylen);
- cdesc->cd_cur_ptr += state1_size + state2_size
- + ICP_QAT_HW_ZUC_3G_EEA3_IV_SZ;
+ cdesc->cd_cur_ptr += ICP_QAT_HW_ZUC_3G_EEA3_IV_SZ;
auth_param->hash_state_sz = ICP_QAT_HW_ZUC_3G_EEA3_IV_SZ >> 3;
cdesc->min_qat_dev_gen = QAT_GEN2;
--
2.1.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] crypto/qat: fix computation of cd ptr in zuc
2020-04-27 14:39 [dpdk-dev] [PATCH] crypto/qat: fix computation of cd ptr in zuc Arek Kusztal
@ 2020-04-27 17:41 ` Trahe, Fiona
0 siblings, 0 replies; 2+ messages in thread
From: Trahe, Fiona @ 2020-04-27 17:41 UTC (permalink / raw)
To: Kusztal, ArkadiuszX, dev; +Cc: stable
> -----Original Message-----
> From: Kusztal, ArkadiuszX <arkadiuszx.kusztal@intel.com>
> Sent: Monday, April 27, 2020 3:40 PM
> To: dev@dpdk.org; Trahe, Fiona <fiona.trahe@intel.com>
> Cc: Kusztal, ArkadiuszX <arkadiuszx.kusztal@intel.com>; stable@dpdk.org
> Subject: [PATCH] crypto/qat: fix computation of cd ptr in zuc
>
> Offset of cd pointer is too big by state1size + state2size,
> so few extra unnecessary bytes will be copied into cd.
>
> Fixes: d9b7d5bbc845 ("crypto/qat: add ZUC EEA3/EIA3 capability")
> Cc: stable@dpdk.org
>
> Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
Nack - there's a better way to fix this - we'll send a v2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-27 17:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-27 14:39 [dpdk-dev] [PATCH] crypto/qat: fix computation of cd ptr in zuc Arek Kusztal
2020-04-27 17:41 ` Trahe, Fiona
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).