examples/fips_validation: bypass unsupported vectors

Bypass the test vectors of unsupported crypto transform
for SHA.

Signed-off-by: Archana Muniganti <marchana@marvell.com>
This commit is contained in:
Archana Muniganti 2020-09-16 16:11:51 +05:30 committed by Akhil Goyal
parent 1442ab1a9a
commit 8a40ff3905

View 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;
}