From: Sucharitha Sarananaga Date: Mon, 6 Jan 2020 09:33:11 +0000 (+0530) Subject: examples/fips_validation: fix cipher length for AES-GCM X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=07f5e4553293cff259b7c44f1aa7bad7734eaca2;p=dpdk.git examples/fips_validation: fix cipher length for AES-GCM Cipher length need to be updated in case of AES-GCM decryption. Fixes: 4aaad2995e13 ("examples/fips_validation: support GCM parsing") Cc: stable@dpdk.org Signed-off-by: Archana Muniganti Signed-off-by: Sucharitha Sarananaga Acked-by: Anoob Joseph --- diff --git a/examples/fips_validation/fips_validation_gcm.c b/examples/fips_validation/fips_validation_gcm.c index ea48ddf707..f295025590 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 = " #define COUNT_STR "Count = " #define KEY_STR "Key = " @@ -46,6 +47,7 @@ struct fips_test_callback gcm_interim_vectors[] = { {KEYLEN_STR, parser_read_uint32_bit_val, &vec.aead.key}, {IVLEN_STR, parser_read_uint32_bit_val, &vec.iv}, {PTLEN_STR, parser_read_uint32_bit_val, &vec.pt}, + {CTLEN_STR, parser_read_uint32_bit_val, &vec.ct}, {AADLEN_STR, parser_read_uint32_bit_val, &vec.aead.aad}, {TAGLEN_STR, parser_read_uint32_bit_val, &vec.aead.digest},