summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorStephan Mueller <smueller@chronox.de>2015-03-30 21:57:42 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2015-03-31 21:21:04 +0800
commitebc46b158723822ae6ad58c2aa517353dddb045b (patch)
tree8ebc7875ddcba6c38e3ce3ea6d9f765a9e4041c9 /crypto
parentb760f27b17922669b51740ce8ba50ad42d9d10dd (diff)
downloadlinux-crypto-ebc46b158723822ae6ad58c2aa517353dddb045b.tar.gz
linux-crypto-ebc46b158723822ae6ad58c2aa517353dddb045b.zip
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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/proc.c b/crypto/proc.c
index 4a0a7aad..4ffe73b5 100644
--- a/crypto/proc.c
+++ b/crypto/proc.c
@@ -89,6 +89,9 @@ static int c_show(struct seq_file *m, void *p)
seq_printf(m, "selftest : %s\n",
(alg->cra_flags & CRYPTO_ALG_TESTED) ?
"passed" : "unknown");
+ seq_printf(m, "internal : %s\n",
+ (alg->cra_flags & CRYPTO_ALG_INTERNAL) ?
+ "yes" : "no");
if (alg->cra_flags & CRYPTO_ALG_LARVAL) {
seq_printf(m, "type : larval\n");