summaryrefslogtreecommitdiff
path: root/crypto/proc.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2006-08-22 00:06:54 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2006-09-21 11:41:51 +1000
commitf9082e8db440781a66cb09886b0a95bc0fcd2c82 (patch)
tree3c6d274835a43cad1bc945f1d01890cc3a98bde8 /crypto/proc.c
parent32c6be5311046570e4163e34421c6e63a7a10afd (diff)
downloadlinux-crypto-f9082e8db440781a66cb09886b0a95bc0fcd2c82.tar.gz
linux-crypto-f9082e8db440781a66cb09886b0a95bc0fcd2c82.zip
[CRYPTO] api: Added crypto_type support
This patch adds the crypto_type structure which will be used for all new crypto algorithm types, beginning with block ciphers. The primary purpose of this abstraction is to allow different crypto_type objects for crypto algorithms of the same type, in particular, there will be a different crypto_type objects for asynchronous algorithms. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/proc.c')
-rw-r--r--crypto/proc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/proc.c b/crypto/proc.c
index 9e573b17..dabce067 100644
--- a/crypto/proc.c
+++ b/crypto/proc.c
@@ -78,7 +78,10 @@ static int c_show(struct seq_file *m, void *p)
seq_printf(m, "type : compression\n");
break;
default:
- seq_printf(m, "type : unknown\n");
+ if (alg->cra_type && alg->cra_type->show)
+ alg->cra_type->show(m, alg);
+ else
+ seq_printf(m, "type : unknown\n");
break;
}