]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - crypto/hash.c
OMAP: dmtimer: enable all timers to be wakeup events
[linux-2.6-omap-h63xx.git] / crypto / hash.c
index f9400a014e74b3bbb3147b046aae36dad6abfad4..cb86b19fd105c320e8b75e1d63d388242b0d716c 100644 (file)
@@ -9,6 +9,7 @@
  * any later version.
  */
 
+#include <crypto/internal/hash.h>
 #include <linux/errno.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
@@ -128,7 +129,6 @@ static int crypto_init_hash_ops_async(struct crypto_tfm *tfm)
        crt->digest     = hash_async_digest;
        crt->setkey     = hash_async_setkey;
        crt->digestsize = alg->digestsize;
-       crt->base       = __crypto_ahash_cast(tfm);
 
        return 0;
 }
@@ -152,7 +152,7 @@ static int crypto_init_hash_ops(struct crypto_tfm *tfm, u32 type, u32 mask)
 {
        struct hash_alg *alg = &tfm->__crt_alg->cra_hash;
 
-       if (alg->digestsize > crypto_tfm_alg_blocksize(tfm))
+       if (alg->digestsize > PAGE_SIZE / 8)
                return -EINVAL;
 
        if ((mask & CRYPTO_ALG_TYPE_HASH_MASK) != CRYPTO_ALG_TYPE_HASH_MASK)