[dpdk-dev] [PATCH] examples/fips_validation: fix parsing of cipher length for AES-GCM

Archana Muniganti marchana at marvell.com
Mon Jan 6 14:44:33 CET 2020


Hi Akhil,

Please see inline.

Thanks,
Archana

> -----Original Message-----
> From: Akhil Goyal <akhil.goyal at nxp.com>
> Sent: Monday, January 6, 2020 3:09 PM
> To: Archana Muniganti <marchana at marvell.com>;
> marko.kovacevic at intel.com; roy.fan.zhang at intel.com
> Cc: Sucharitha Sarananaga <ssarananaga at marvell.com>; Anoob Joseph
> <anoobj at marvell.com>; Abed Mohammad Kamaluddin
> <akamaluddin at marvell.com>; Jerin Jacob Kollanukkaran
> <jerinj at marvell.com>; dev at dpdk.org; stable at dpdk.org
> Subject: [EXT] RE: [PATCH] examples/fips_validation: fix parsing of cipher
> length for AES-GCM
> 
> External Email
> 
> ----------------------------------------------------------------------
> > From: Sucharitha Sarananaga <ssarananaga at marvell.com>
> >
> > Cipher length need to be updated in case of AES-GCM decryption.
> >
> > Fixes: 4aaad2995e13 ("examples/fips_validation: support GCM parsing")
> >
> > Signed-off-by: Archana Muniganti <marchana at marvell.com>
> > Signed-off-by: Sucharitha Sarananaga <ssarananaga at marvell.com>
> > ---
> >  examples/fips_validation/fips_validation_gcm.c | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/examples/fips_validation/fips_validation_gcm.c
> > b/examples/fips_validation/fips_validation_gcm.c
> > index ea48ddf..f295025 100644
> > --- a/examples/fips_validation/fips_validation_gcm.c
> > +++ b/examples/fips_validation/fips_validation_gcm.c
> > @@ -19,6 +19,7 @@
> >  #define PTLEN_STR	"PTlen = "
> >  #define AADLEN_STR	"AADlen = "
> >  #define TAGLEN_STR	"Taglen = "
> > +#define CTLEN_STR	"PTlen = "
> Typo. Should be CTlen
[Archana] NIST request file for AES-GCM test vectors contains 'PTlen =' field.
This field holds plain text length when encrypt test vectors are used. And same
field holds cipher text length when decrypt test vectors are used.
Hence added a new macro that will be used in AES-GCM 'decryption'


More information about the dev mailing list