summaryrefslogtreecommitdiff
path: root/crypto/chainiv.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2008-08-17 18:04:30 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2008-08-29 15:50:00 +1000
commit5b596af75262cecacd178dbfe89baafe91e26873 (patch)
treedd1953fbb186b2fb2c2ea6326e725f732f34ddf8 /crypto/chainiv.c
parent8fc871d5b407abdb9720394863938ee9938920b8 (diff)
downloadlinux-crypto-5b596af75262cecacd178dbfe89baafe91e26873.tar.gz
linux-crypto-5b596af75262cecacd178dbfe89baafe91e26873.zip
crypto: skcipher - Move IV generators into their own modules
This patch moves the default IV generators into their own modules in order to break a dependency loop between cryptomgr, rng, and blkcipher. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/chainiv.c')
-rw-r--r--crypto/chainiv.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/crypto/chainiv.c b/crypto/chainiv.c
index 9affadee..cf68d436 100644
--- a/crypto/chainiv.c
+++ b/crypto/chainiv.c
@@ -320,12 +320,18 @@ static struct crypto_template chainiv_tmpl = {
.module = THIS_MODULE,
};
-int __init chainiv_module_init(void)
+static int __init chainiv_module_init(void)
{
return crypto_register_template(&chainiv_tmpl);
}
-void chainiv_module_exit(void)
+static void chainiv_module_exit(void)
{
crypto_unregister_template(&chainiv_tmpl);
}
+
+module_init(chainiv_module_init);
+module_exit(chainiv_module_exit);
+
+MODULE_LICENSE("GPL");
+MODULE_DESCRIPTION("Chain IV Generator");