projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
crypto: remove CRYPTO_TFM_RES_BAD_KEY_LEN
[linux-block.git]
/
crypto
/
vmac.c
diff --git
a/crypto/vmac.c
b/crypto/vmac.c
index f50a85060b39f4359be9c05445bfd90735403a6f..0bbb34dc87c4f34c92e7ffd5c5016b64cb6aa016 100644
(file)
--- a/
crypto/vmac.c
+++ b/
crypto/vmac.c
@@
-435,10
+435,8
@@
static int vmac_setkey(struct crypto_shash *tfm,
unsigned int i;
int err;
- if (keylen != VMAC_KEY_LEN) {
- crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN);
+ if (keylen != VMAC_KEY_LEN)
return -EINVAL;
- }
err = crypto_cipher_setkey(tctx->cipher, key, keylen);
if (err)