[dpdk-dev] [PATCH v1] test/crypto: fix: test vectors for zuc 256 bit key
De Lara Guarch, Pablo
pablo.de.lara.guarch at intel.com
Sun Oct 31 23:06:32 CET 2021
Hi Sagar,
Thanks for flagging this. I submitted a patch fixing the IV of the test vectors I pushed (it didn't change the output):
http://patches.dpdk.org/project/dpdk/patch/20211031220421.52181-1-pablo.de.lara.guarch@intel.com/
Could you check if they work for you?
Thanks,
Pablo
From: Vidya Sagar Velumuri <vvelumuri at marvell.com>
Sent: Saturday, October 30, 2021 1:26 PM
To: De Lara Guarch, Pablo <pablo.de.lara.guarch at intel.com>; Ankur Dwivedi <adwivedi at marvell.com>; Anoob Joseph <anoobj at marvell.com>; Tejasree Kondoj <ktejasree at marvell.com>; Nithin Kumar Dabilpuram <ndabilpuram at marvell.com>; Akhil Goyal <gakhil at marvell.com>; Doherty, Declan <declan.doherty at intel.com>
Cc: dev at dpdk.org
Subject: Re: [dpdk-dev] [PATCH v1] test/crypto: fix: test vectors for zuc 256 bit key
Hi Pablo,
Tried the test vector zuc256_test_case_auth_1 and the digest did not match with the generated digest in our platform.
As per spec, IV[i] for i = 17 to 24 are 6-bit string occupying the 6 least signi cant bits of a byte.
But in the vectors, The values in the IV(byte -17 to 24) are > 0x3f.
Could you please elaborate how these bytes are considered for generation of digest.
Regards
Sagar
________________________________
From: De Lara Guarch, Pablo <pablo.de.lara.guarch at intel.com<mailto:pablo.de.lara.guarch at intel.com>>
Sent: 29 October 2021 18:07
To: Vidya Sagar Velumuri <vvelumuri at marvell.com<mailto:vvelumuri at marvell.com>>; Ankur Dwivedi <adwivedi at marvell.com<mailto:adwivedi at marvell.com>>; Anoob Joseph <anoobj at marvell.com<mailto:anoobj at marvell.com>>; Tejasree Kondoj <ktejasree at marvell.com<mailto:ktejasree at marvell.com>>; Nithin Kumar Dabilpuram <ndabilpuram at marvell.com<mailto:ndabilpuram at marvell.com>>; Akhil Goyal <gakhil at marvell.com<mailto:gakhil at marvell.com>>; Doherty, Declan <declan.doherty at intel.com<mailto:declan.doherty at intel.com>>
Cc: dev at dpdk.org<mailto:dev at dpdk.org> <dev at dpdk.org<mailto:dev at dpdk.org>>
Subject: [EXT] RE: [dpdk-dev] [PATCH v1] test/crypto: fix: test vectors for zuc 256 bit key
External Email
----------------------------------------------------------------------
Hi Vidya,
> -----Original Message-----
> From: dev <dev-bounces at dpdk.org<mailto:dev-bounces at dpdk.org>> On Behalf Of Vidya Sagar Velumuri
> Sent: Wednesday, October 27, 2021 9:41 AM
> To: adwivedi at marvell.com<mailto:adwivedi at marvell.com>; anoobj at marvell.com<mailto:anoobj at marvell.com>; ktejasree at marvell.com<mailto:ktejasree at marvell.com>;
> ndabilpuram at marvell.com<mailto:ndabilpuram at marvell.com>; gakhil at marvell.com<mailto:gakhil at marvell.com>; Doherty, Declan
> <declan.doherty at intel.com<mailto:declan.doherty at intel.com>>
> Cc: dev at dpdk.org<mailto:dev at dpdk.org>
> Subject: [dpdk-dev] [PATCH v1] test/crypto: fix: test vectors for zuc 256 bit key
>
> Fix the IV and MAC in the test vectors added for zuc 256-bit key
>
> Fixes: fa5bf9345d4e (test/crypto: add ZUC cases with 256-bit keys)
>
> Signed-off-by: Vidya Sagar Velumuri <vvelumuri at marvell.com<mailto:vvelumuri at marvell.com>>
The new vectors are failing for us. Could you check if the ones we added work for you?
Thanks,
Pablo
More information about the dev
mailing list