mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-14 17:47:46 -04:00
Modifies tests in rsa test suite
Modification of tests in test_suite_rsa.function to adept them for the removal of the mode param from mbedtls_rsa_pkcs1_sign function. Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
141700f057
commit
11425347f0
@ -205,27 +205,22 @@ void rsa_invalid_param( )
|
|||||||
|
|
||||||
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA,
|
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA,
|
||||||
mbedtls_rsa_pkcs1_sign( NULL, NULL, NULL,
|
mbedtls_rsa_pkcs1_sign( NULL, NULL, NULL,
|
||||||
valid_mode,
|
MBEDTLS_RSA_PRIVATE,
|
||||||
0, sizeof( buf ), buf,
|
0, sizeof( buf ), buf,
|
||||||
buf ) );
|
buf ) );
|
||||||
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA,
|
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA,
|
||||||
mbedtls_rsa_pkcs1_sign( &ctx, NULL, NULL,
|
mbedtls_rsa_pkcs1_sign( &ctx, NULL, NULL,
|
||||||
invalid_mode,
|
MBEDTLS_RSA_PRIVATE,
|
||||||
0, sizeof( buf ), buf,
|
|
||||||
buf ) );
|
|
||||||
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA,
|
|
||||||
mbedtls_rsa_pkcs1_sign( &ctx, NULL, NULL,
|
|
||||||
valid_mode,
|
|
||||||
0, sizeof( buf ), NULL,
|
0, sizeof( buf ), NULL,
|
||||||
buf ) );
|
buf ) );
|
||||||
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA,
|
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA,
|
||||||
mbedtls_rsa_pkcs1_sign( &ctx, NULL, NULL,
|
mbedtls_rsa_pkcs1_sign( &ctx, NULL, NULL,
|
||||||
valid_mode,
|
MBEDTLS_RSA_PRIVATE,
|
||||||
0, sizeof( buf ), buf,
|
0, sizeof( buf ), buf,
|
||||||
NULL ) );
|
NULL ) );
|
||||||
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA,
|
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA,
|
||||||
mbedtls_rsa_pkcs1_sign( &ctx, NULL, NULL,
|
mbedtls_rsa_pkcs1_sign( &ctx, NULL, NULL,
|
||||||
valid_mode,
|
MBEDTLS_RSA_PRIVATE,
|
||||||
MBEDTLS_MD_SHA1,
|
MBEDTLS_MD_SHA1,
|
||||||
0, NULL,
|
0, NULL,
|
||||||
buf ) );
|
buf ) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user