mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]>
This commit is contained in:
parent
1aa4ecd95d
commit
5be5e667a9
5 changed files with 18 additions and 41 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue