* [PATCH 21.11] common/cnxk: fix auth key length
@ 2023-03-20 17:03 Gowrishankar Muthukrishnan
2023-03-21 16:20 ` Kevin Traynor
0 siblings, 1 reply; 2+ messages in thread
From: Gowrishankar Muthukrishnan @ 2023-03-20 17:03 UTC (permalink / raw)
To: stable; +Cc: jerinj, anoobj, ktejasree, Akhil Goyal, Gowrishankar Muthukrishnan
[ upstream commit 0fcaf90fe25ecaa002d765fa9759e554500e3f76 ]
Auth key length is stored as 8 bit value in SE context. It should
be larger enough to accommodate supported auth key length of 1024
bytes maximum, as in HMAC.
Fixes: a45859312ff ("common/cnxk: add SE definitions for symmetric crypto")
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
---
drivers/common/cnxk/roc_se.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/common/cnxk/roc_se.h b/drivers/common/cnxk/roc_se.h
index 500f94ac11..fbe4e3e856 100644
--- a/drivers/common/cnxk/roc_se.h
+++ b/drivers/common/cnxk/roc_se.h
@@ -280,7 +280,7 @@ struct roc_se_ctx {
uint64_t enc_cipher : 8;
uint64_t hash_type : 8;
uint64_t mac_len : 8;
- uint64_t auth_key_len : 8;
+ uint64_t auth_key_len : 16;
uint64_t fc_type : 4;
uint64_t hmac : 1;
uint64_t zsk_flags : 3;
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 21.11] common/cnxk: fix auth key length
2023-03-20 17:03 [PATCH 21.11] common/cnxk: fix auth key length Gowrishankar Muthukrishnan
@ 2023-03-21 16:20 ` Kevin Traynor
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Traynor @ 2023-03-21 16:20 UTC (permalink / raw)
To: Gowrishankar Muthukrishnan, stable; +Cc: jerinj, anoobj, ktejasree, Akhil Goyal
On 20/03/2023 17:03, Gowrishankar Muthukrishnan wrote:
> [ upstream commit 0fcaf90fe25ecaa002d765fa9759e554500e3f76 ]
>
> Auth key length is stored as 8 bit value in SE context. It should
> be larger enough to accommodate supported auth key length of 1024
> bytes maximum, as in HMAC.
>
> Fixes: a45859312ff ("common/cnxk: add SE definitions for symmetric crypto")
>
> Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
> ---
> drivers/common/cnxk/roc_se.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Thanks Gowri. Queued this for 21.11 pending CI pass.
Kevin.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-21 16:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-20 17:03 [PATCH 21.11] common/cnxk: fix auth key length Gowrishankar Muthukrishnan
2023-03-21 16:20 ` Kevin Traynor
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).