diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2008-08-03 09:15:23 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-08-29 01:49:57 -0400 |
commit | 73d3864a4823abda19ebc4387b6ddcbf416e3a77 (patch) | |
tree | 2939754dc2532f412c34a974e5f22dde112c525d /crypto/proc.c | |
parent | da7f033ddc9fdebb3223b0bf88a2a2ab5b797608 (diff) |
crypto: api - Use test infrastructure
This patch makes use of the new testing infrastructure by requiring
algorithms to pass a run-time test before they're made available to
users.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/proc.c')
-rw-r--r-- | crypto/proc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/proc.c b/crypto/proc.c index c6ede1e9c875..1d616adead0d 100644 --- a/crypto/proc.c +++ b/crypto/proc.c | |||
@@ -46,6 +46,9 @@ static int c_show(struct seq_file *m, void *p) | |||
46 | seq_printf(m, "module : %s\n", module_name(alg->cra_module)); | 46 | seq_printf(m, "module : %s\n", module_name(alg->cra_module)); |
47 | seq_printf(m, "priority : %d\n", alg->cra_priority); | 47 | seq_printf(m, "priority : %d\n", alg->cra_priority); |
48 | seq_printf(m, "refcnt : %d\n", atomic_read(&alg->cra_refcnt)); | 48 | seq_printf(m, "refcnt : %d\n", atomic_read(&alg->cra_refcnt)); |
49 | seq_printf(m, "selftest : %s\n", | ||
50 | (alg->cra_flags & CRYPTO_ALG_TESTED) ? | ||
51 | "passed" : "unknown"); | ||
49 | 52 | ||
50 | switch (alg->cra_flags & (CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_LARVAL)) { | 53 | switch (alg->cra_flags & (CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_LARVAL)) { |
51 | case CRYPTO_ALG_TYPE_CIPHER: | 54 | case CRYPTO_ALG_TYPE_CIPHER: |