projects
/
linux-2.6-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-2.6-block.git]
/
arch
/
x86
/
crypto
/
crc32-pclmul_glue.c
diff --git
a/arch/x86/crypto/crc32-pclmul_glue.c
b/arch/x86/crypto/crc32-pclmul_glue.c
index cb4ab6645106e444bfe4f5225c3082774f5d1f27..418bd88acac8e74ea139aebbb92c5ff77590d27a 100644
(file)
--- a/
arch/x86/crypto/crc32-pclmul_glue.c
+++ b/
arch/x86/crypto/crc32-pclmul_glue.c
@@
-94,10
+94,8
@@
static int crc32_pclmul_setkey(struct crypto_shash *hash, const u8 *key,
{
u32 *mctx = crypto_shash_ctx(hash);
- if (keylen != sizeof(u32)) {
- crypto_shash_set_flags(hash, CRYPTO_TFM_RES_BAD_KEY_LEN);
+ if (keylen != sizeof(u32))
return -EINVAL;
- }
*mctx = le32_to_cpup((__le32 *)key);
return 0;
}