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/chainiv.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/chainiv.c')
-rw-r--r-- | crypto/chainiv.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/crypto/chainiv.c b/crypto/chainiv.c index 9affadee3287..cf68d4365347 100644 --- a/crypto/chainiv.c +++ b/crypto/chainiv.c | |||
@@ -320,12 +320,18 @@ static struct crypto_template chainiv_tmpl = { | |||
320 | .module = THIS_MODULE, | 320 | .module = THIS_MODULE, |
321 | }; | 321 | }; |
322 | 322 | ||
323 | int __init chainiv_module_init(void) | 323 | static int __init chainiv_module_init(void) |
324 | { | 324 | { |
325 | return crypto_register_template(&chainiv_tmpl); | 325 | return crypto_register_template(&chainiv_tmpl); |
326 | } | 326 | } |
327 | 327 | ||
328 | void chainiv_module_exit(void) | 328 | static void chainiv_module_exit(void) |
329 | { | 329 | { |
330 | crypto_unregister_template(&chainiv_tmpl); | 330 | crypto_unregister_template(&chainiv_tmpl); |
331 | } | 331 | } |
332 | |||
333 | module_init(chainiv_module_init); | ||
334 | module_exit(chainiv_module_exit); | ||
335 | |||
336 | MODULE_LICENSE("GPL"); | ||
337 | MODULE_DESCRIPTION("Chain IV Generator"); | ||