From 8a40ff390553ba2a08cbfc919140663aeefb40d5 Mon Sep 17 00:00:00 2001 From: Archana Muniganti Date: Wed, 16 Sep 2020 16:11:51 +0530 Subject: [PATCH] examples/fips_validation: bypass unsupported vectors Bypass the test vectors of unsupported crypto transform for SHA. Signed-off-by: Archana Muniganti --- examples/fips_validation/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/fips_validation/main.c b/examples/fips_validation/main.c index ee3a890e9e..9e46307bb2 100644 --- a/examples/fips_validation/main.c +++ b/examples/fips_validation/main.c @@ -1040,7 +1040,7 @@ fips_generic_test(void) ret = fips_run_test(); if (ret < 0) { - if (ret == -EPERM) { + if (ret == -EPERM || ret == -ENOTSUP) { fprintf(info.fp_wr, "Bypass\n\n"); return 0; } @@ -1461,7 +1461,7 @@ fips_mct_sha_test(void) ret = fips_run_test(); if (ret < 0) { - if (ret == -EPERM) { + if (ret == -EPERM || ret == -ENOTSUP) { fprintf(info.fp_wr, "Bypass\n\n"); return 0; } -- 2.20.1