summaryrefslogtreecommitdiff
path: root/examples/fips_validation/fips_validation.c
diff options
context:
space:
mode:
authorMarko Kovacevic <marko.kovacevic@intel.com>2018-11-02 09:55:34 +0000
committerAkhil Goyal <akhil.goyal@nxp.com>2018-11-02 12:26:06 +0100
commit305921f4508d6a4c399ff99036e379e810455b9b (patch)
tree34bfd2fee19aaabed18e11a46fb823ad98a4083a /examples/fips_validation/fips_validation.c
parentac026f4668d031220b3203913005c0ded0a38e1d (diff)
downloaddpdk-305921f4508d6a4c399ff99036e379e810455b9b.zip
dpdk-305921f4508d6a4c399ff99036e379e810455b9b.tar.gz
dpdk-305921f4508d6a4c399ff99036e379e810455b9b.tar.xz
examples/fips_validation: support CCM parsing
Added enablement for CCM parser, to allow the application to parser the ccm request files and to validate all test types supported. Signed-off-by: Marko Kovacevic <marko.kovacevic@intel.com> Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Arek Kusztal <arkadiuszx.kusztal@intel.com> Reviewed-by: Akhil Goyal <akhil.goyal@nxp.com>
Diffstat (limited to 'examples/fips_validation/fips_validation.c')
-rw-r--r--examples/fips_validation/fips_validation.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/fips_validation/fips_validation.c b/examples/fips_validation/fips_validation.c
index fdf6f64..a835cc3 100644
--- a/examples/fips_validation/fips_validation.c
+++ b/examples/fips_validation/fips_validation.c
@@ -121,6 +121,11 @@ fips_test_parse_header(void)
ret = parse_test_cmac_init();
if (ret < 0)
return 0;
+ } else if (strstr(info.vec[i], "CCM")) {
+ info.algo = FIPS_TEST_ALGO_AES_CCM;
+ ret = parse_test_ccm_init();
+ if (ret < 0)
+ return 0;
} else if (strstr(info.vec[i], "HMAC")) {
info.algo = FIPS_TEST_ALGO_HMAC;
ret = parse_test_hmac_init();