crypto: padlock-sha - Use init_tfm/exit_tfm interface
[linux-2.6-block.git] / crypto / hmac.c
index 8b2a212eb0ad412e1d8a34d178c53d6eefb71342..377f07733e2fa86c3f5476a951909cd3ca40a40d 100644 (file)
@@ -185,9 +185,9 @@ static int hmac_create(struct crypto_template *tmpl, struct rtattr **tb)
                return PTR_ERR(salg);
        alg = &salg->base;
 
-       /* The underlying hash algorithm must be unkeyed */
+       /* The underlying hash algorithm must not require a key */
        err = -EINVAL;
-       if (crypto_shash_alg_has_setkey(salg))
+       if (crypto_shash_alg_needs_key(salg))
                goto out_put_alg;
 
        ds = salg->digestsize;