mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 18:28:37 +00:00
Fix valgrind warning in ECDSA test suite.
This commit is contained in:
parent
007b7177ef
commit
450a163c81
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,7 @@ ecdsa_random:id
|
||||||
ecp_point_init( &Q );
|
ecp_point_init( &Q );
|
||||||
mpi_init( &d ); mpi_init( &r ); mpi_init( &s );
|
mpi_init( &d ); mpi_init( &r ); mpi_init( &s );
|
||||||
memset( &rnd_info, 0x00, sizeof( rnd_pseudo_info ) );
|
memset( &rnd_info, 0x00, sizeof( rnd_pseudo_info ) );
|
||||||
|
memset( buf, 0, sizeof( buf ) );
|
||||||
|
|
||||||
/* prepare material for signature */
|
/* prepare material for signature */
|
||||||
TEST_ASSERT( rnd_pseudo_rand( &rnd_info, buf, sizeof( buf ) ) == 0 );
|
TEST_ASSERT( rnd_pseudo_rand( &rnd_info, buf, sizeof( buf ) ) == 0 );
|
||||||
|
@ -49,6 +50,7 @@ ecdsa_test_vectors:id:d:xQ:yQ:k:hash:r:s
|
||||||
ecp_point_init( &Q );
|
ecp_point_init( &Q );
|
||||||
mpi_init( &d ); mpi_init( &r ); mpi_init( &s );
|
mpi_init( &d ); mpi_init( &r ); mpi_init( &s );
|
||||||
mpi_init( &r_check ); mpi_init( &s_check );
|
mpi_init( &r_check ); mpi_init( &s_check );
|
||||||
|
memset( buf, 0, sizeof( buf ) );
|
||||||
|
|
||||||
TEST_ASSERT( ecp_use_known_dp( &grp, POLARSSL_ECP_DP_{id} ) == 0 );
|
TEST_ASSERT( ecp_use_known_dp( &grp, POLARSSL_ECP_DP_{id} ) == 0 );
|
||||||
TEST_ASSERT( ecp_point_read_string( &Q, 16, "{xQ}", "{yQ}" ) == 0 );
|
TEST_ASSERT( ecp_point_read_string( &Q, 16, "{xQ}", "{yQ}" ) == 0 );
|
||||||
|
|
Loading…
Reference in a new issue