summaryrefslogtreecommitdiff
path: root/test/rsa_test.c
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-05-25 11:26:15 +1000
committerPauli <pauli@openssl.org>2021-05-26 20:39:38 +1000
commitb59b2f93a165f9e4ad6ed15ca8b22ff29296297f (patch)
tree360658c3581892652d7bbcac187cb64c9c929eb9 /test/rsa_test.c
parent1cf520e9d045c1d97c740367b1b94db88e90d9db (diff)
downloadopenssl-new-b59b2f93a165f9e4ad6ed15ca8b22ff29296297f.tar.gz
test: update RSA test with current bit strengths
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Kurt Roeckx <kurt@roeckx.be> (Merged from https://github.com/openssl/openssl/pull/15428)
Diffstat (limited to 'test/rsa_test.c')
-rw-r--r--test/rsa_test.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/rsa_test.c b/test/rsa_test.c
index c2c8b6ef5e..5ddc3b6c6e 100644
--- a/test/rsa_test.c
+++ b/test/rsa_test.c
@@ -337,16 +337,22 @@ static const struct {
{ 4096, 152 },
{ 6144, 176 },
{ 8192, 200 },
+ /* NIST FIPS 140-2 IG 7.5 */
+ { 7680, 192 },
+ { 15360, 256 },
/* Older values */
{ 256, 40 },
{ 512, 56 },
{ 1024, 80 },
- /* Slightly different value to the 256 that NIST lists in their tables */
- { 15360, 264 },
/* Some other values */
{ 8888, 208 },
{ 2468, 120 },
- { 13456, 248 }
+ { 13456, 248 },
+ /* Edge points */
+ { 15359, 256 },
+ { 15361, 264 },
+ { 7679, 192 },
+ { 7681, 200 },
};
static int test_rsa_security_bit(int n)