diff options
author | Stephan Mueller <smueller@chronox.de> | 2015-03-30 15:57:42 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-03-31 09:21:04 -0400 |
commit | b0cda2ba18a50abf0d7b248e3d588260e0194ab2 (patch) | |
tree | b53488f0bbc3f2b5c828417bc57d5830404d6131 /crypto | |
parent | 466a7b9e3e7833a0cc21a69a0bea9d50daf0ca10 (diff) |
crypto: proc - identify internal ciphers
With ciphers that now cannot be accessed via the kernel crypto API,
callers shall be able to identify the ciphers that are not callable. The
/proc/crypto file is added a boolean field identifying that such
internal ciphers.
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-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 4a0a7aad2204..4ffe73b51612 100644 --- a/crypto/proc.c +++ b/crypto/proc.c | |||
@@ -89,6 +89,9 @@ static int c_show(struct seq_file *m, void *p) | |||
89 | seq_printf(m, "selftest : %s\n", | 89 | seq_printf(m, "selftest : %s\n", |
90 | (alg->cra_flags & CRYPTO_ALG_TESTED) ? | 90 | (alg->cra_flags & CRYPTO_ALG_TESTED) ? |
91 | "passed" : "unknown"); | 91 | "passed" : "unknown"); |
92 | seq_printf(m, "internal : %s\n", | ||
93 | (alg->cra_flags & CRYPTO_ALG_INTERNAL) ? | ||
94 | "yes" : "no"); | ||
92 | 95 | ||
93 | if (alg->cra_flags & CRYPTO_ALG_LARVAL) { | 96 | if (alg->cra_flags & CRYPTO_ALG_LARVAL) { |
94 | seq_printf(m, "type : larval\n"); | 97 | seq_printf(m, "type : larval\n"); |