patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH] examples/fips_validation: fix parsing of algo from NIST TDES test files
@ 2020-04-17 15:08 Archana Muniganti
  2020-04-23 13:33 ` Anoob Joseph
  0 siblings, 1 reply; 3+ messages in thread
From: Archana Muniganti @ 2020-04-17 15:08 UTC (permalink / raw)
  To: marko.kovacevic, roy.fan.zhang, akhil.goyal
  Cc: Archana Muniganti, anoobj, pathreya, dev, stable, Ayuj Verma

Few of the NIST TDES test files don't contain TDES string.
Added indicators to identify such files. These indicators
are part of only NIST TDES test vector files.

Fixes: 527cbf3d5ee3 ("examples/fips_validation: support TDES parsing")

Signed-off-by: Archana Muniganti <marchana@marvell.com>
Signed-off-by: Ayuj Verma <ayverma@marvell.com>
---
 examples/fips_validation/fips_validation.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/examples/fips_validation/fips_validation.c b/examples/fips_validation/fips_validation.c
index ef24b72..a34e34d 100644
--- a/examples/fips_validation/fips_validation.c
+++ b/examples/fips_validation/fips_validation.c
@@ -144,6 +144,24 @@ fips_test_parse_header(void)
 				ret = parse_test_tdes_init();
 				if (ret < 0)
 					return 0;
+			} else if (strstr(info.vec[i], "PERMUTATION")) {
+				algo_parsed = 1;
+				info.algo = FIPS_TEST_ALGO_TDES;
+				ret = parse_test_tdes_init();
+				if (ret < 0)
+					return 0;
+			} else if (strstr(info.vec[i], "VARIABLE")) {
+				algo_parsed = 1;
+				info.algo = FIPS_TEST_ALGO_TDES;
+				ret = parse_test_tdes_init();
+				if (ret < 0)
+					return 0;
+			} else if (strstr(info.vec[i], "SUBSTITUTION")) {
+				algo_parsed = 1;
+				info.algo = FIPS_TEST_ALGO_TDES;
+				ret = parse_test_tdes_init();
+				if (ret < 0)
+					return 0;
 			} else if (strstr(info.vec[i], "SHA-")) {
 				algo_parsed = 1;
 				info.algo = FIPS_TEST_ALGO_SHA;
-- 
2.7.4


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-stable] [PATCH] examples/fips_validation: fix parsing of algo from NIST TDES test files
  2020-04-17 15:08 [dpdk-stable] [PATCH] examples/fips_validation: fix parsing of algo from NIST TDES test files Archana Muniganti
@ 2020-04-23 13:33 ` Anoob Joseph
  2020-05-09 22:07   ` Akhil Goyal
  0 siblings, 1 reply; 3+ messages in thread
From: Anoob Joseph @ 2020-04-23 13:33 UTC (permalink / raw)
  To: Archana Muniganti, marko.kovacevic, roy.fan.zhang, akhil.goyal
  Cc: Archana Muniganti, Narayana Prasad Raju Athreya, dev, stable, Ayuj Verma

> 
> Few of the NIST TDES test files don't contain TDES string.
> Added indicators to identify such files. These indicators are part of only NIST
> TDES test vector files.
> 
> Fixes: 527cbf3d5ee3 ("examples/fips_validation: support TDES parsing")
> 
> Signed-off-by: Archana Muniganti <marchana@marvell.com>
> Signed-off-by: Ayuj Verma <ayverma@marvell.com>
 
Acked-by: Anoob Joseph <anoobj@marvell.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-stable] [PATCH] examples/fips_validation: fix parsing of algo from NIST TDES test files
  2020-04-23 13:33 ` Anoob Joseph
@ 2020-05-09 22:07   ` Akhil Goyal
  0 siblings, 0 replies; 3+ messages in thread
From: Akhil Goyal @ 2020-05-09 22:07 UTC (permalink / raw)
  To: Anoob Joseph, Archana Muniganti, marko.kovacevic, roy.fan.zhang
  Cc: Archana Muniganti, Narayana Prasad Raju Athreya, dev, stable, Ayuj Verma

> >
> > Few of the NIST TDES test files don't contain TDES string.
> > Added indicators to identify such files. These indicators are part of only NIST
> > TDES test vector files.
> >
> > Fixes: 527cbf3d5ee3 ("examples/fips_validation: support TDES parsing")
> >
> > Signed-off-by: Archana Muniganti <marchana@marvell.com>
> > Signed-off-by: Ayuj Verma <ayverma@marvell.com>
> 
> Acked-by: Anoob Joseph <anoobj@marvell.com>

Applied to dpdk-next-crypto

Thanks.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-09 22:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-17 15:08 [dpdk-stable] [PATCH] examples/fips_validation: fix parsing of algo from NIST TDES test files Archana Muniganti
2020-04-23 13:33 ` Anoob Joseph
2020-05-09 22:07   ` Akhil Goyal

patches for DPDK stable branches

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/stable/0 stable/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 stable stable/ https://inbox.dpdk.org/stable \
		stable@dpdk.org
	public-inbox-index stable

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.stable


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git