]> git.droids-corp.org - dpdk.git/blobdiff - examples/fips_validation/fips_validation.c
examples/fips_validation: fix parsing of algorithms
[dpdk.git] / examples / fips_validation / fips_validation.c
index ef24b72037ad756bb2cc6320918ff7ae918d9697..a34e34d25a68a5758ca85997587a3f15c814c586 100644 (file)
@@ -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;