projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drivers: power: report battery voltage in AOSP compatible format
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
crypto
/
ablkcipher.c
diff --git
a/crypto/ablkcipher.c
b/crypto/ablkcipher.c
index 7d4a8d28277e181386981dcef2d73ec377aefe9a..2b6dd740163254361b8dc421bab0d971a10cb2da 100644
(file)
--- a/
crypto/ablkcipher.c
+++ b/
crypto/ablkcipher.c
@@
-379,6
+379,7
@@
static int crypto_init_ablkcipher_ops(struct crypto_tfm *tfm, u32 type,
}
crt->base = __crypto_ablkcipher_cast(tfm);
crt->ivsize = alg->ivsize;
}
crt->base = __crypto_ablkcipher_cast(tfm);
crt->ivsize = alg->ivsize;
+ crt->has_setkey = alg->max_keysize;
return 0;
}
return 0;
}
@@
-460,6
+461,7
@@
static int crypto_init_givcipher_ops(struct crypto_tfm *tfm, u32 type,
crt->givdecrypt = alg->givdecrypt ?: no_givdecrypt;
crt->base = __crypto_ablkcipher_cast(tfm);
crt->ivsize = alg->ivsize;
crt->givdecrypt = alg->givdecrypt ?: no_givdecrypt;
crt->base = __crypto_ablkcipher_cast(tfm);
crt->ivsize = alg->ivsize;
+ crt->has_setkey = alg->max_keysize;
return 0;
}
return 0;
}
@@
-700,7
+702,7
@@
struct crypto_ablkcipher *crypto_alloc_ablkcipher(const char *alg_name,
err:
if (err != -EAGAIN)
break;
err:
if (err != -EAGAIN)
break;
- if (signal_pending(current)) {
+ if (
fatal_
signal_pending(current)) {
err = -EINTR;
break;
}
err = -EINTR;
break;
}