Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148811
b: refs/heads/master
c: a3bef3a
h: refs/heads/master
i:
  148809: fd146cb
  148807: c6d8975
v: v3
  • Loading branch information
Jarod Wilson authored and Herbert Xu committed Jun 2, 2009
1 parent 94add81 commit c298ec3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a1915d51e8e7ee192d2101d621d425379088cbb0
refs/heads/master: a3bef3a31a19bd943047ba8bf5b2cc7b5d164362
8 changes: 8 additions & 0 deletions trunk/crypto/testmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2308,6 +2308,9 @@ int alg_test(const char *driver, const char *alg, u32 type, u32 mask)
if (i < 0)
goto notest;

if (fips_enabled && !alg_test_descs[i].fips_allowed)
goto non_fips_alg;

rc = alg_test_cipher(alg_test_descs + i, driver, type, mask);
goto test_done;
}
Expand All @@ -2316,6 +2319,9 @@ int alg_test(const char *driver, const char *alg, u32 type, u32 mask)
if (i < 0)
goto notest;

if (fips_enabled && !alg_test_descs[i].fips_allowed)
goto non_fips_alg;

rc = alg_test_descs[i].test(alg_test_descs + i, driver,
type, mask);
test_done:
Expand All @@ -2331,5 +2337,7 @@ int alg_test(const char *driver, const char *alg, u32 type, u32 mask)
notest:
printk(KERN_INFO "alg: No test for %s (%s)\n", alg, driver);
return 0;
non_fips_alg:
return -EINVAL;
}
EXPORT_SYMBOL_GPL(alg_test);

0 comments on commit c298ec3

Please sign in to comment.