diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2008-08-17 04:04:30 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-08-29 01:50:00 -0400 |
commit | 5be5e667a9a5d8d5553e009e67bc692d95e5916a (patch) | |
tree | a3a64ea1ec9d303a21319ee72579522a5f42a101 /crypto/eseqiv.c | |
parent | 1aa4ecd95d8d67d21731a00646326a71295dafa3 (diff) |
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/eseqiv.c')
-rw-r--r-- | crypto/eseqiv.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/crypto/eseqiv.c b/crypto/eseqiv.c index 881d3091043..f5def217a8f 100644 --- a/crypto/eseqiv.c +++ b/crypto/eseqiv.c | |||
@@ -248,12 +248,18 @@ static struct crypto_template eseqiv_tmpl = { | |||
248 | .module = THIS_MODULE, | 248 | .module = THIS_MODULE, |
249 | }; | 249 | }; |
250 | 250 | ||
251 | int __init eseqiv_module_init(void) | 251 | static int __init eseqiv_module_init(void) |
252 | { | 252 | { |
253 | return crypto_register_template(&eseqiv_tmpl); | 253 | return crypto_register_template(&eseqiv_tmpl); |
254 | } | 254 | } |
255 | 255 | ||
256 | void __exit eseqiv_module_exit(void) | 256 | static void __exit eseqiv_module_exit(void) |
257 | { | 257 | { |
258 | crypto_unregister_template(&eseqiv_tmpl); | 258 | crypto_unregister_template(&eseqiv_tmpl); |
259 | } | 259 | } |
260 | |||
261 | module_init(eseqiv_module_init); | ||
262 | module_exit(eseqiv_module_exit); | ||
263 | |||
264 | MODULE_LICENSE("GPL"); | ||
265 | MODULE_DESCRIPTION("Encrypted Sequence Number IV Generator"); | ||