summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2006-08-26 08:12:40 (GMT)
committerHerbert Xu <herbert@gondor.apana.org.au>2006-09-21 01:46:22 (GMT)
commite4d5b79c661c7cfca9d8d5afd040a295f128d3cb (patch)
tree55a19ceca1b51b26d1934d388b26f0b1bed99a3e /drivers/crypto
parentfce32d70ba834129b164c40c2d4260e5a7a7d850 (diff)
downloadlinux-e4d5b79c661c7cfca9d8d5afd040a295f128d3cb.tar.xz
[CRYPTO] users: Use crypto_comp and crypto_has_*
This patch converts all users to use the new crypto_comp type and the crypto_has_* functions. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/padlock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/crypto/padlock.c b/drivers/crypto/padlock.c
index ce58168..d6d7dd5 100644
--- a/drivers/crypto/padlock.c
+++ b/drivers/crypto/padlock.c
@@ -26,13 +26,13 @@ static int __init padlock_init(void)
{
int success = 0;
- if (crypto_alg_available("aes-padlock", 0))
+ if (crypto_has_cipher("aes-padlock", 0, 0))
success++;
- if (crypto_alg_available("sha1-padlock", 0))
+ if (crypto_has_hash("sha1-padlock", 0, 0))
success++;
- if (crypto_alg_available("sha256-padlock", 0))
+ if (crypto_has_hash("sha256-padlock", 0, 0))
success++;
if (!success) {