* [PATCH v1] examples/fips_validation: fix print for zero length payload
@ 2022-06-30 11:21 Archana Muniganti
2022-07-01 19:13 ` Akhil Goyal
0 siblings, 1 reply; 2+ messages in thread
From: Archana Muniganti @ 2022-06-30 11:21 UTC (permalink / raw)
To: dev, gakhil
Cc: Archana Muniganti, roy.fan.zhang, brian.dooley, gmuthukrishn, anoobj
NIST GCM decrypt result vectors expects to have following print
for zero length payload instead of having no print.
"pt" = ""
Fixes: b09aac2d6e2b ("examples/fips_validation: add JSON to GCM test")
Signed-off-by: Archana Muniganti <marchana@marvell.com>
---
examples/fips_validation/fips_validation_gcm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/examples/fips_validation/fips_validation_gcm.c b/examples/fips_validation/fips_validation_gcm.c
index 28ef04c817..6b3d158629 100644
--- a/examples/fips_validation/fips_validation_gcm.c
+++ b/examples/fips_validation/fips_validation_gcm.c
@@ -327,6 +327,9 @@ parse_test_gcm_json_writeback(struct fips_val *val)
writeback_hex_str("", info.one_line_text, &tmp_val);
json_object_set_new(json_info.json_write_case, PT_JSON_STR,
json_string(info.one_line_text));
+ } else {
+ json_object_set_new(json_info.json_write_case, PT_JSON_STR,
+ json_string(""));
}
} else {
json_object_set_new(json_info.json_write_case, "testPassed", json_false());
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [PATCH v1] examples/fips_validation: fix print for zero length payload
2022-06-30 11:21 [PATCH v1] examples/fips_validation: fix print for zero length payload Archana Muniganti
@ 2022-07-01 19:13 ` Akhil Goyal
0 siblings, 0 replies; 2+ messages in thread
From: Akhil Goyal @ 2022-07-01 19:13 UTC (permalink / raw)
To: Archana Muniganti, dev
Cc: Archana Muniganti, roy.fan.zhang, brian.dooley,
Gowrishankar Muthukrishnan, Anoob Joseph
> Subject: [PATCH v1] examples/fips_validation: fix print for zero length payload
>
> NIST GCM decrypt result vectors expects to have following print
> for zero length payload instead of having no print.
> "pt" = ""
>
> Fixes: b09aac2d6e2b ("examples/fips_validation: add JSON to GCM test")
>
> Signed-off-by: Archana Muniganti <marchana@marvell.com>
Applied to dpdk-next-crypto
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-01 19:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-30 11:21 [PATCH v1] examples/fips_validation: fix print for zero length payload Archana Muniganti
2022-07-01 19:13 ` Akhil Goyal
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).