summaryrefslogtreecommitdiff
path: root/crypto/aead.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-12-14 22:29:37 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-11 08:16:56 +1100
commit3091a7d0c08c2c94526f8acee30ef2859cbc24cd (patch)
tree1b49c61e4fa1edf9e9a2e5b6b1484681fe1d2be9 /crypto/aead.c
parentdd7f1b0ae38a2807461079d386ade14a9c941274 (diff)
downloadlinux-crypto-3091a7d0c08c2c94526f8acee30ef2859cbc24cd.tar.gz
linux-crypto-3091a7d0c08c2c94526f8acee30ef2859cbc24cd.zip
[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 '')
-rw-r--r--crypto/aead.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/aead.c b/crypto/aead.c
index f5b1add3..3a6f3f52 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)
struct aead_alg *aead = &alg->cra_aead;
seq_printf(m, "type : aead\n");
+ seq_printf(m, "async : %s\n", alg->cra_flags & CRYPTO_ALG_ASYNC ?
+ "yes" : "no");
seq_printf(m, "blocksize : %u\n", alg->cra_blocksize);
seq_printf(m, "ivsize : %u\n", aead->ivsize);
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)
struct aead_alg *aead = &alg->cra_aead;
seq_printf(m, "type : nivaead\n");
+ seq_printf(m, "async : %s\n", alg->cra_flags & CRYPTO_ALG_ASYNC ?
+ "yes" : "no");
seq_printf(m, "blocksize : %u\n", alg->cra_blocksize);
seq_printf(m, "ivsize : %u\n", aead->ivsize);
seq_printf(m, "maxauthsize : %u\n", aead->maxauthsize);