From d28b228c917b32593339c8937534b4ff24b461e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Meuter?= Date: Sun, 10 Jan 2021 18:21:30 +0100 Subject: [PATCH] Removed the test verifying the saltlen input MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - following the removal of the RSA_VALIDATE_RET() to check the salt length, this test is not necessary/required anymore - negative salt length are caught later in the function Signed-off-by: Cédric Meuter --- tests/suites/test_suite_rsa.function | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/suites/test_suite_rsa.function b/tests/suites/test_suite_rsa.function index bbe23608c..e9439553c 100644 --- a/tests/suites/test_suite_rsa.function +++ b/tests/suites/test_suite_rsa.function @@ -25,7 +25,6 @@ void rsa_invalid_param( ) const int invalid_padding = 42; const int valid_mode = MBEDTLS_RSA_PRIVATE; const int invalid_mode = 42; - const int negative_salt_length = -2; unsigned char buf[42] = { 0 }; size_t olen; @@ -338,11 +337,6 @@ void rsa_invalid_param( ) 0, NULL, buf ) ); - TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA, - mbedtls_rsa_rsassa_pss_sign_ext( &ctx, NULL, NULL, - 0, sizeof( buf ), buf, - negative_salt_length, - buf ) ); TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA, mbedtls_rsa_rsassa_pss_sign_ext( NULL, NULL, NULL, 0, sizeof( buf ), buf,