Check that mbedtls_mpi_grow succeeds
This commit is contained in:
parent
292672eb12
commit
9018b11302
1 changed files with 2 additions and 2 deletions
|
@ -600,8 +600,8 @@ void mbedtls_mpi_lt_mpi_ct( int size_X, char * input_X,
|
||||||
TEST_ASSERT( mbedtls_mpi_read_string( &X, 16, input_X ) == 0 );
|
TEST_ASSERT( mbedtls_mpi_read_string( &X, 16, input_X ) == 0 );
|
||||||
TEST_ASSERT( mbedtls_mpi_read_string( &Y, 16, input_Y ) == 0 );
|
TEST_ASSERT( mbedtls_mpi_read_string( &Y, 16, input_Y ) == 0 );
|
||||||
|
|
||||||
mbedtls_mpi_grow( &X, size_X );
|
TEST_ASSERT( mbedtls_mpi_grow( &X, size_X ) == 0 );
|
||||||
mbedtls_mpi_grow( &Y, size_Y );
|
TEST_ASSERT( mbedtls_mpi_grow( &Y, size_Y ) == 0 );
|
||||||
|
|
||||||
TEST_ASSERT( mbedtls_mpi_lt_mpi_ct( &X, &Y, &ret ) == input_err );
|
TEST_ASSERT( mbedtls_mpi_lt_mpi_ct( &X, &Y, &ret ) == input_err );
|
||||||
if( input_err == 0 )
|
if( input_err == 0 )
|
||||||
|
|
Loading…
Reference in a new issue