projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
{net, ib}/mlx5: Make cache line size determination at runtime.
[cascardo/linux.git]
/
crypto
/
rsa_helper.c
diff --git
a/crypto/rsa_helper.c
b/crypto/rsa_helper.c
index
4df6451
..
0b66dc8
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--;
}
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;
}
pr_err("RSA: key size not allowed in FIPS mode\n");
return -EINVAL;
}