examples/ipsec-secgw: test CPU crypto
[dpdk.git] / examples / fips_validation / fips_validation.c
index 8d43b26..ef24b72 100644 (file)
@@ -150,6 +150,12 @@ fips_test_parse_header(void)
                                ret = parse_test_sha_init();
                                if (ret < 0)
                                        return ret;
+                       } else if (strstr(info.vec[i], "XTS")) {
+                               algo_parsed = 1;
+                               info.algo = FIPS_TEST_ALGO_AES_XTS;
+                               ret = parse_test_xts_init();
+                               if (ret < 0)
+                                       return ret;
                        }
                }
 
@@ -257,6 +263,7 @@ fips_test_init(const char *req_file_path, const char *rsp_file_path,
 
        fips_test_clear();
 
+       strcpy(info.file_name, req_file_path);
        info.algo = FIPS_TEST_ALGO_MAX;
        if (parse_file_type(req_file_path) < 0) {
                RTE_LOG(ERR, USER1, "File %s type not supported\n",