]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - crypto/digest.c
crypto: hash - Fixed digest size check
[linux-2.6-omap-h63xx.git] / crypto / digest.c
index 025c9aea24ed814b87ddbd1fa445bfd28fcf6f33..d63d5d96feecc4e7e040765d4719992737b0c345 100644 (file)
@@ -141,7 +141,7 @@ int crypto_init_digest_ops(struct crypto_tfm *tfm)
        struct hash_tfm *ops = &tfm->crt_hash;
        struct digest_alg *dalg = &tfm->__crt_alg->cra_digest;
 
-       if (dalg->dia_digestsize > crypto_tfm_alg_blocksize(tfm))
+       if (dalg->dia_digestsize > PAGE_SIZE / 8)
                return -EINVAL;
        
        ops->init       = init;