mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-15 10:08:30 -04:00
Removes and modifies tests
Removes and modifies tests for mbedtls_rsa_rsaes_oaep_encrypt. Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
53e4ac64b7
commit
3c487f4b8e
@ -129,31 +129,25 @@ 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_rsaes_oaep_encrypt( NULL, NULL, NULL,
|
mbedtls_rsa_rsaes_oaep_encrypt( NULL, NULL, NULL,
|
||||||
valid_mode,
|
MBEDTLS_RSA_PUBLIC,
|
||||||
buf, sizeof( buf ),
|
buf, sizeof( buf ),
|
||||||
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_rsaes_oaep_encrypt( &ctx, NULL, NULL,
|
mbedtls_rsa_rsaes_oaep_encrypt( &ctx, NULL, NULL,
|
||||||
invalid_mode,
|
MBEDTLS_RSA_PUBLIC,
|
||||||
buf, sizeof( buf ),
|
|
||||||
sizeof( buf ), buf,
|
|
||||||
buf ) );
|
|
||||||
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_RSA_BAD_INPUT_DATA,
|
|
||||||
mbedtls_rsa_rsaes_oaep_encrypt( &ctx, NULL, NULL,
|
|
||||||
valid_mode,
|
|
||||||
NULL, sizeof( buf ),
|
NULL, sizeof( buf ),
|
||||||
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_rsaes_oaep_encrypt( &ctx, NULL, NULL,
|
mbedtls_rsa_rsaes_oaep_encrypt( &ctx, NULL, NULL,
|
||||||
valid_mode,
|
MBEDTLS_RSA_PUBLIC,
|
||||||
buf, sizeof( buf ),
|
buf, sizeof( buf ),
|
||||||
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_rsaes_oaep_encrypt( &ctx, NULL, NULL,
|
mbedtls_rsa_rsaes_oaep_encrypt( &ctx, NULL, NULL,
|
||||||
valid_mode,
|
MBEDTLS_RSA_PUBLIC,
|
||||||
buf, sizeof( buf ),
|
buf, sizeof( buf ),
|
||||||
sizeof( buf ), buf,
|
sizeof( buf ), buf,
|
||||||
NULL ) );
|
NULL ) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user