projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'gfs2-for-5.6' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux...
[linux-2.6-microblaze.git]
/
crypto
/
ghash-generic.c
diff --git
a/crypto/ghash-generic.c
b/crypto/ghash-generic.c
index
5027b34
..
c70d163
100644
(file)
--- a/
crypto/ghash-generic.c
+++ b/
crypto/ghash-generic.c
@@
-58,10
+58,8
@@
static int ghash_setkey(struct crypto_shash *tfm,
struct ghash_ctx *ctx = crypto_shash_ctx(tfm);
be128 k;
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;
return -EINVAL;
- }
if (ctx->gf128)
gf128mul_free_4k(ctx->gf128);
if (ctx->gf128)
gf128mul_free_4k(ctx->gf128);