aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/padlock.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2006-08-26 04:12:40 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2006-09-20 21:46:22 -0400
commite4d5b79c661c7cfca9d8d5afd040a295f128d3cb (patch)
tree55a19ceca1b51b26d1934d388b26f0b1bed99a3e /drivers/crypto/padlock.c
parentfce32d70ba834129b164c40c2d4260e5a7a7d850 (diff)
[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/padlock.c')
-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 ce581684f4b4..d6d7dd5bb98c 100644
--- a/drivers/crypto/padlock.c
+++ b/drivers/crypto/padlock.c
@@ -26,13 +26,13 @@ static int __init padlock_init(void)
26{ 26{
27 int success = 0; 27 int success = 0;
28 28
29 if (crypto_alg_available("aes-padlock", 0)) 29 if (crypto_has_cipher("aes-padlock", 0, 0))
30 success++; 30 success++;
31 31
32 if (crypto_alg_available("sha1-padlock", 0)) 32 if (crypto_has_hash("sha1-padlock", 0, 0))
33 success++; 33 success++;
34 34
35 if (crypto_alg_available("sha256-padlock", 0)) 35 if (crypto_has_hash("sha256-padlock", 0, 0))
36 success++; 36 success++;
37 37
38 if (!success) { 38 if (!success) {