diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2006-08-21 10:06:54 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2006-09-20 21:41:51 -0400 |
commit | e853c3cfa8cc24869ecd2526e589bcb176bc12e9 (patch) | |
tree | 24ad223420bdea868e891676ebb7285e3c477a05 /crypto/proc.c | |
parent | 8f21cf0d2bae04ece761595036c9da8328b279aa (diff) |
[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.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/proc.c b/crypto/proc.c index 9e573b17e887..dabce0676f63 100644 --- a/crypto/proc.c +++ b/crypto/proc.c | |||
@@ -78,7 +78,10 @@ static int c_show(struct seq_file *m, void *p) | |||
78 | seq_printf(m, "type : compression\n"); | 78 | seq_printf(m, "type : compression\n"); |
79 | break; | 79 | break; |
80 | default: | 80 | default: |
81 | seq_printf(m, "type : unknown\n"); | 81 | if (alg->cra_type && alg->cra_type->show) |
82 | alg->cra_type->show(m, alg); | ||
83 | else | ||
84 | seq_printf(m, "type : unknown\n"); | ||
82 | break; | 85 | break; |
83 | } | 86 | } |
84 | 87 | ||