4 * Support for VIA PadLock hardware crypto engine.
6 * Copyright (c) 2006 Michal Ludvig <michal@logix.cz>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
15 #include <linux/module.h>
16 #include <linux/init.h>
17 #include <linux/errno.h>
18 #include <linux/crypto.h>
19 #include <linux/cryptohash.h>
20 #include <linux/interrupt.h>
21 #include <linux/kernel.h>
22 #include <linux/scatterlist.h>
25 static int __init padlock_init(void)
29 if (crypto_has_cipher("aes-padlock", 0, 0))
32 if (crypto_has_hash("sha1-padlock", 0, 0))
35 if (crypto_has_hash("sha256-padlock", 0, 0))
39 printk(KERN_WARNING PFX "No VIA PadLock drivers have been loaded.\n");
43 printk(KERN_NOTICE PFX "%d drivers are available.\n", success);
48 static void __exit padlock_fini(void)
52 module_init(padlock_init);
53 module_exit(padlock_fini);
55 MODULE_DESCRIPTION("Load all configured PadLock algorithms.");
56 MODULE_LICENSE("GPL");
57 MODULE_AUTHOR("Michal Ludvig");