[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>
这个提交包含在:
Herbert Xu
2006-08-26 18:12:40 +10:00
父节点 fce32d70ba
当前提交 e4d5b79c66
修改 8 个文件,包含 60 行新增45 行删除

查看文件

@@ -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) {