From b59b2f93a165f9e4ad6ed15ca8b22ff29296297f Mon Sep 17 00:00:00 2001 From: Pauli Date: Tue, 25 May 2021 11:26:15 +1000 Subject: test: update RSA test with current bit strengths Reviewed-by: Tomas Mraz Reviewed-by: Kurt Roeckx (Merged from https://github.com/openssl/openssl/pull/15428) --- test/rsa_test.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'test/rsa_test.c') 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) -- cgit v1.2.1