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
Merge tag 'perf-urgent-for-mingo-20161017' of git://git.kernel.org/pub/scm/linux...
[linux-2.6-block.git]
/
crypto
/
rsa_helper.c
diff --git
a/crypto/rsa_helper.c
b/crypto/rsa_helper.c
index 4df6451e7543670f7836c2507e77d7329d65b10f..0b66dc8246068aa084dd0b44210b04dee5f2bccb 100644
(file)
--- a/
crypto/rsa_helper.c
+++ b/
crypto/rsa_helper.c
@@
-35,8
+35,8
@@
int rsa_get_n(void *context, size_t hdrlen, unsigned char tag,
n_sz--;
}
- /* In FIPS mode only allow key size 2K
& 3K
*/
- if (n_sz
!= 256 && n_sz != 384
) {
+ /* In FIPS mode only allow key size 2K
and higher
*/
+ if (n_sz
< 256
) {
pr_err("RSA: key size not allowed in FIPS mode\n");
return -EINVAL;
}