summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-04-21 10:46:40 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2015-04-22 09:30:16 +0800
commit881cd6c570af412c2fab278b0656f7597dc5ee74 (patch)
tree8086185484f8185be5cb365a45d35cf19d75d6dc /include/crypto
parent7ca99d814821e8a8ac6d7c48b2ccfc24bda27b1f (diff)
downloadop-kernel-dev-881cd6c570af412c2fab278b0656f7597dc5ee74.zip
op-kernel-dev-881cd6c570af412c2fab278b0656f7597dc5ee74.tar.gz
crypto: rng - Add multiple algorithm registration interface
This patch adds the helpers that allow the registration and removal of multiple RNG algorithms. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/internal/rng.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/crypto/internal/rng.h b/include/crypto/internal/rng.h
index 93d41bc..2c9a865 100644
--- a/include/crypto/internal/rng.h
+++ b/include/crypto/internal/rng.h
@@ -20,6 +20,8 @@ extern const struct crypto_type crypto_rng_type;
int crypto_register_rng(struct rng_alg *alg);
void crypto_unregister_rng(struct rng_alg *alg);
+int crypto_register_rngs(struct rng_alg *algs, int count);
+void crypto_unregister_rngs(struct rng_alg *algs, int count);
static inline void *crypto_rng_ctx(struct crypto_rng *tfm)
{
OpenPOWER on IntegriCloud