Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
[linux.git] / arch / arm64 / crypto / sha1-ce-glue.c
index ecb0f67e59988389395c2392859433e0c13c679f..bdc1b6d7aff79a634c00cad89872b6cede4fec1c 100644 (file)
@@ -52,7 +52,7 @@ static int sha1_ce_finup(struct shash_desc *desc, const u8 *data,
                         unsigned int len, u8 *out)
 {
        struct sha1_ce_state *sctx = shash_desc_ctx(desc);
-       bool finalize = !sctx->sst.count && !(len % SHA1_BLOCK_SIZE);
+       bool finalize = !sctx->sst.count && !(len % SHA1_BLOCK_SIZE) && len;
 
        if (!crypto_simd_usable())
                return crypto_sha1_finup(desc, data, len, out);
This page took 0.032209 seconds and 4 git commands to generate.