examples/fips_validation: bypass unsupported vectors
authorArchana Muniganti <marchana@marvell.com>
Wed, 16 Sep 2020 10:41:51 +0000 (16:11 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 14 Oct 2020 20:22:06 +0000 (22:22 +0200)
Bypass the test vectors of unsupported crypto transform
for SHA.

Signed-off-by: Archana Muniganti <marchana@marvell.com>
examples/fips_validation/main.c

index ee3a890..9e46307 100644 (file)
@@ -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;
                                }