test: update RSA test with current bit strengths
authorPauli <pauli@openssl.org>
Tue, 25 May 2021 01:26:15 +0000 (11:26 +1000)
committerPauli <pauli@openssl.org>
Wed, 26 May 2021 10:39:38 +0000 (20:39 +1000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/15428)

test/rsa_test.c

index c2c8b6ef5e60b3e6372731a78f51991ba2285d24..5ddc3b6c6ee8e22492cea7e0a4710a78783c938a 100644 (file)
@@ -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)