summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorRabin Vincent <rabinv@axis.com>2017-08-10 14:53:52 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-08-22 14:54:52 +0800
commit6f7473c524cc4f875dcd9397ec9a6ec039bd08b6 (patch)
tree285c03f00824a9ef01af2bf2271a37ead88f243d /include/crypto
parentac6b6f4531bb0d113ad8ba8c08247df793271a96 (diff)
downloadlinux-6f7473c524cc4f875dcd9397ec9a6ec039bd08b6.tar.gz
linux-6f7473c524cc4f875dcd9397ec9a6ec039bd08b6.tar.bz2
linux-6f7473c524cc4f875dcd9397ec9a6ec039bd08b6.zip
crypto: hash - add crypto_(un)register_ahashes()
There are already helpers to (un)register multiple normal and AEAD algos. Add one for ahashes too. Signed-off-by: Lars Persson <larper@axis.com> Signed-off-by: Rabin Vincent <rabinv@axis.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/internal/hash.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/crypto/internal/hash.h b/include/crypto/internal/hash.h
index f6d9af3efa45..f0b44c16e88f 100644
--- a/include/crypto/internal/hash.h
+++ b/include/crypto/internal/hash.h
@@ -76,6 +76,8 @@ static inline int crypto_ahash_walk_last(struct crypto_hash_walk *walk)
int crypto_register_ahash(struct ahash_alg *alg);
int crypto_unregister_ahash(struct ahash_alg *alg);
+int crypto_register_ahashes(struct ahash_alg *algs, int count);
+void crypto_unregister_ahashes(struct ahash_alg *algs, int count);
int ahash_register_instance(struct crypto_template *tmpl,
struct ahash_instance *inst);
void ahash_free_instance(struct crypto_instance *inst);