aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/ablkcipher.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-12-14 09:29:37 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-10 16:16:56 -0500
commit189ed66e95fb23666a62963b718dcbe62adbadde (patch)
treee21548136a7be416f45290025f6f8a56bc474cba /crypto/ablkcipher.c
parente7cd2514ea506f06bd4f7b13a9b62afd60f9c73b (diff)
[CRYPTO] api: Show async type
This patch adds an async field to /proc/crypto for ablkcipher and aead algorithms. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ablkcipher.c')
-rw-r--r--crypto/ablkcipher.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/ablkcipher.c b/crypto/ablkcipher.c
index d1df528c8fa3..3bcb099b4a85 100644
--- a/crypto/ablkcipher.c
+++ b/crypto/ablkcipher.c
@@ -109,6 +109,8 @@ static void crypto_ablkcipher_show(struct seq_file *m, struct crypto_alg *alg)
109 struct ablkcipher_alg *ablkcipher = &alg->cra_ablkcipher; 109 struct ablkcipher_alg *ablkcipher = &alg->cra_ablkcipher;
110 110
111 seq_printf(m, "type : ablkcipher\n"); 111 seq_printf(m, "type : ablkcipher\n");
112 seq_printf(m, "async : %s\n", alg->cra_flags & CRYPTO_ALG_ASYNC ?
113 "yes" : "no");
112 seq_printf(m, "blocksize : %u\n", alg->cra_blocksize); 114 seq_printf(m, "blocksize : %u\n", alg->cra_blocksize);
113 seq_printf(m, "min keysize : %u\n", ablkcipher->min_keysize); 115 seq_printf(m, "min keysize : %u\n", ablkcipher->min_keysize);
114 seq_printf(m, "max keysize : %u\n", ablkcipher->max_keysize); 116 seq_printf(m, "max keysize : %u\n", ablkcipher->max_keysize);
@@ -158,6 +160,8 @@ static void crypto_givcipher_show(struct seq_file *m, struct crypto_alg *alg)
158 struct ablkcipher_alg *ablkcipher = &alg->cra_ablkcipher; 160 struct ablkcipher_alg *ablkcipher = &alg->cra_ablkcipher;
159 161
160 seq_printf(m, "type : givcipher\n"); 162 seq_printf(m, "type : givcipher\n");
163 seq_printf(m, "async : %s\n", alg->cra_flags & CRYPTO_ALG_ASYNC ?
164 "yes" : "no");
161 seq_printf(m, "blocksize : %u\n", alg->cra_blocksize); 165 seq_printf(m, "blocksize : %u\n", alg->cra_blocksize);
162 seq_printf(m, "min keysize : %u\n", ablkcipher->min_keysize); 166 seq_printf(m, "min keysize : %u\n", ablkcipher->min_keysize);
163 seq_printf(m, "max keysize : %u\n", ablkcipher->max_keysize); 167 seq_printf(m, "max keysize : %u\n", ablkcipher->max_keysize);