]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - crypto/ghash-generic.c
Merge tag 'riscv-for-linus-5.6-mw0' of git://git.kernel.org/pub/scm/linux/kernel...
[linux.git] / crypto / ghash-generic.c
index 5027b3461c921eb90fddbbf1401b529452a63c4b..c70d163c1ac9a6214d59b5f7ea7d1a4d37d1922c 100644 (file)
@@ -58,10 +58,8 @@ static int ghash_setkey(struct crypto_shash *tfm,
        struct ghash_ctx *ctx = crypto_shash_ctx(tfm);
        be128 k;
 
-       if (keylen != GHASH_BLOCK_SIZE) {
-               crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN);
+       if (keylen != GHASH_BLOCK_SIZE)
                return -EINVAL;
-       }
 
        if (ctx->gf128)
                gf128mul_free_4k(ctx->gf128);