summaryrefslogtreecommitdiff
path: root/crypto/internal.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-04-20 13:39:00 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2015-04-21 10:19:54 +0800
commit299aab052ba37f58f1ec3c2bd142828199202559 (patch)
tree51e8667421a6453fb7a57d2dbb9a754298335e03 /crypto/internal.h
parentd510c9a3ea0449336e45fb0914db3d32a2b5e4c8 (diff)
downloadlinux-crypto-299aab052ba37f58f1ec3c2bd142828199202559.tar.gz
linux-crypto-299aab052ba37f58f1ec3c2bd142828199202559.zip
crypto: api - Add crypto_alg_extsize helper
This patch adds a crypto_alg_extsize helper that can be used by algorithm types such as pcompress and shash. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/internal.h')
-rw-r--r--crypto/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/internal.h b/crypto/internal.h
index bd39bfc9..ed7a70c6 100644
--- a/crypto/internal.h
+++ b/crypto/internal.h
@@ -103,6 +103,8 @@ int crypto_register_notifier(struct notifier_block *nb);
int crypto_unregister_notifier(struct notifier_block *nb);
int crypto_probing_notify(unsigned long val, void *v);
+unsigned int crypto_alg_extsize(struct crypto_alg *alg);
+
static inline struct crypto_alg *crypto_alg_get(struct crypto_alg *alg)
{
atomic_inc(&alg->cra_refcnt);