mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-16 10:37:54 -04:00
Removal and modification of tests
Changes for tests involving mbedtls_rsa_pkcs1_encrypt. Removal of test in test_suite_rsa.function where invalid mode is used. Also modification of other tests to use the constant MBEDTLS_RSA_PUBLIC instead of the mode variable. Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
0fdd8d297a
commit
c32e2b0921
@ -103,22 +103,17 @@ 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_encrypt( NULL, NULL, NULL,
|
mbedtls_rsa_pkcs1_encrypt( NULL, NULL, NULL,
|
||||||
valid_mode,
|
MBEDTLS_RSA_PUBLIC,
|
||||||
sizeof( buf ), buf,
|
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_encrypt( &ctx, NULL, NULL,
|
mbedtls_rsa_pkcs1_encrypt( &ctx, NULL, NULL,
|
||||||
invalid_mode,
|
MBEDTLS_RSA_PUBLIC,
|
||||||
sizeof( buf ), buf,
|
|
||||||
buf ) );
|
|
||||||
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA,
|
|
||||||
mbedtls_rsa_pkcs1_encrypt( &ctx, NULL, NULL,
|
|
||||||
valid_mode,
|
|
||||||
sizeof( buf ), NULL,
|
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_encrypt( &ctx, NULL, NULL,
|
mbedtls_rsa_pkcs1_encrypt( &ctx, NULL, NULL,
|
||||||
valid_mode,
|
MBEDTLS_RSA_PUBLIC,
|
||||||
sizeof( buf ), buf,
|
sizeof( buf ), buf,
|
||||||
NULL ) );
|
NULL ) );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user