[dpdk-dev] [PATCH] crypto: fix incorrect key setting

Jain, Deepak K deepak.k.jain at intel.com
Thu Feb 9 18:18:12 CET 2017


> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Pablo de Lara
> Sent: Tuesday, February 7, 2017 10:50 PM
> To: dev at dpdk.org
> Cc: De Lara Guarch, Pablo <pablo.de.lara.guarch at intel.com>;
> stable at dpdk.org
> Subject: [dpdk-dev] [PATCH] crypto: fix incorrect key setting
> 
> When ciphering and authenticating in the same operation (cipher-then-auth
> or auth-then-cipher), the cipher key and authentication key was set with the
> same key, in SNOW3G, KASUMI and ZUC PMDs.
> They were using the key of the first transform structure, instead of using the
> keys of the two different transform structures.
> 
> This is not a big issue, since usually, the same key is used for ciphering and
> authentication, but keys may be different.
> 
> Fixes: 3aafc423cf4d ("snow3g: add driver for SNOW 3G library")
> Fixes: 2773c86d061a ("crypto/kasumi: add driver for KASUMI library")
> Fixes: cf7685d68f00 ("crypto/zuc: add driver for ZUC library")
> 
> CC: stable at dpdk.org
> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch at intel.com>
> ---
>  drivers/crypto/kasumi/rte_kasumi_pmd.c | 4 ++--
> drivers/crypto/snow3g/rte_snow3g_pmd.c | 4 ++--
>  drivers/crypto/zuc/rte_zuc_pmd.c       | 6 ++++--
>  3 files changed, 8 insertions(+), 6 deletions(-)
> 
> --
> 2.7.4
Acked-by: Deepak Kumar Jain <deepak.k.jain at intel.com>


More information about the dev mailing list