From: Stephan Mueller Date: Mon, 30 Mar 2015 19:57:42 +0000 (+0200) Subject: crypto: proc - identify internal ciphers X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b0cda2ba18a50abf0d7b248e3d588260e0194ab2;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Herbert Xu --- 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) 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");