crypto: proc - identify internal ciphers
authorStephan Mueller <smueller@chronox.de>
Mon, 30 Mar 2015 19:57:42 +0000 (21:57 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 31 Mar 2015 13:21:04 +0000 (21:21 +0800)
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>
crypto/proc.c

index 4a0a7aad2204fd4b31afea660452fa0ece9fb457..4ffe73b51612fc45ca377fb3ccba21e3f401d339 100644 (file)
@@ -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");