[CRYPTO] users: Use crypto_comp and crypto_has_*
[linux-3.10.git] / drivers / crypto / padlock.c
index ce581684f4b4aa2a469b4c4bce63e5b771056ea6..d6d7dd5bb98c1abfa12dcff5c3f80e3a4a206903 100644 (file)
@@ -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) {