diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-12-14 09:29:37 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-01-10 16:16:56 -0500 |
commit | 189ed66e95fb23666a62963b718dcbe62adbadde (patch) | |
tree | e21548136a7be416f45290025f6f8a56bc474cba /crypto/aead.c | |
parent | e7cd2514ea506f06bd4f7b13a9b62afd60f9c73b (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/aead.c')
-rw-r--r-- | crypto/aead.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/aead.c b/crypto/aead.c index f5b1add31976..3a6f3f52c7c7 100644 --- a/crypto/aead.c +++ b/crypto/aead.c | |||
@@ -115,6 +115,8 @@ static void crypto_aead_show(struct seq_file *m, struct crypto_alg *alg) | |||
115 | struct aead_alg *aead = &alg->cra_aead; | 115 | struct aead_alg *aead = &alg->cra_aead; |
116 | 116 | ||
117 | seq_printf(m, "type : aead\n"); | 117 | seq_printf(m, "type : aead\n"); |
118 | seq_printf(m, "async : %s\n", alg->cra_flags & CRYPTO_ALG_ASYNC ? | ||
119 | "yes" : "no"); | ||
118 | seq_printf(m, "blocksize : %u\n", alg->cra_blocksize); | 120 | seq_printf(m, "blocksize : %u\n", alg->cra_blocksize); |
119 | seq_printf(m, "ivsize : %u\n", aead->ivsize); | 121 | seq_printf(m, "ivsize : %u\n", aead->ivsize); |
120 | seq_printf(m, "maxauthsize : %u\n", aead->maxauthsize); | 122 | seq_printf(m, "maxauthsize : %u\n", aead->maxauthsize); |
@@ -169,6 +171,8 @@ static void crypto_nivaead_show(struct seq_file *m, struct crypto_alg *alg) | |||
169 | struct aead_alg *aead = &alg->cra_aead; | 171 | struct aead_alg *aead = &alg->cra_aead; |
170 | 172 | ||
171 | seq_printf(m, "type : nivaead\n"); | 173 | seq_printf(m, "type : nivaead\n"); |
174 | seq_printf(m, "async : %s\n", alg->cra_flags & CRYPTO_ALG_ASYNC ? | ||
175 | "yes" : "no"); | ||
172 | seq_printf(m, "blocksize : %u\n", alg->cra_blocksize); | 176 | seq_printf(m, "blocksize : %u\n", alg->cra_blocksize); |
173 | seq_printf(m, "ivsize : %u\n", aead->ivsize); | 177 | seq_printf(m, "ivsize : %u\n", aead->ivsize); |
174 | seq_printf(m, "maxauthsize : %u\n", aead->maxauthsize); | 178 | seq_printf(m, "maxauthsize : %u\n", aead->maxauthsize); |