diff options
| author | Dmitry Torokhov <dtor@insightbb.com> | 2007-05-08 01:31:11 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dtor@insightbb.com> | 2007-05-08 01:31:11 -0400 |
| commit | 334d0dd8b660557608142f0f77abc6812b48f08b (patch) | |
| tree | 9393a9aa099d7d42deda5f9f5054796c0c769be7 /drivers/crypto/padlock.c | |
| parent | 3f07d8796262f6aee135c8dd9a91210da9f888e4 (diff) | |
| parent | 5b94f675f57e4ff16c8fda09088d7480a84dcd91 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'drivers/crypto/padlock.c')
| -rw-r--r-- | drivers/crypto/padlock.c | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/drivers/crypto/padlock.c b/drivers/crypto/padlock.c deleted file mode 100644 index d6d7dd5bb98c..000000000000 --- a/drivers/crypto/padlock.c +++ /dev/null | |||
| @@ -1,58 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Cryptographic API. | ||
| 3 | * | ||
| 4 | * Support for VIA PadLock hardware crypto engine. | ||
| 5 | * | ||
| 6 | * Copyright (c) 2006 Michal Ludvig <michal@logix.cz> | ||
| 7 | * | ||
| 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. | ||
| 12 | * | ||
| 13 | */ | ||
| 14 | |||
| 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> | ||
| 23 | #include "padlock.h" | ||
| 24 | |||
| 25 | static int __init padlock_init(void) | ||
| 26 | { | ||
| 27 | int success = 0; | ||
| 28 | |||
| 29 | if (crypto_has_cipher("aes-padlock", 0, 0)) | ||
| 30 | success++; | ||
| 31 | |||
| 32 | if (crypto_has_hash("sha1-padlock", 0, 0)) | ||
| 33 | success++; | ||
| 34 | |||
| 35 | if (crypto_has_hash("sha256-padlock", 0, 0)) | ||
| 36 | success++; | ||
| 37 | |||
| 38 | if (!success) { | ||
| 39 | printk(KERN_WARNING PFX "No VIA PadLock drivers have been loaded.\n"); | ||
| 40 | return -ENODEV; | ||
| 41 | } | ||
| 42 | |||
| 43 | printk(KERN_NOTICE PFX "%d drivers are available.\n", success); | ||
| 44 | |||
| 45 | return 0; | ||
| 46 | } | ||
| 47 | |||
| 48 | static void __exit padlock_fini(void) | ||
| 49 | { | ||
| 50 | } | ||
| 51 | |||
| 52 | module_init(padlock_init); | ||
| 53 | module_exit(padlock_fini); | ||
| 54 | |||
| 55 | MODULE_DESCRIPTION("Load all configured PadLock algorithms."); | ||
| 56 | MODULE_LICENSE("GPL"); | ||
| 57 | MODULE_AUTHOR("Michal Ludvig"); | ||
| 58 | |||
