Rename of prvkey -> privkey fix in test suite files
This commit is contained in:
parent
7d4e5b739e
commit
8ea6c61477
@ -245,8 +245,8 @@ ECP tls write-read group #2
|
|||||||
depends_on:POLARSSL_ECP_DP_SECP521R1_ENABLED
|
depends_on:POLARSSL_ECP_DP_SECP521R1_ENABLED
|
||||||
ecp_tls_write_read_group:SECP521R1
|
ecp_tls_write_read_group:SECP521R1
|
||||||
|
|
||||||
ECP check prvkey
|
ECP check privkey
|
||||||
ecp_check_prvkey:SECP192R1
|
ecp_check_privkey:SECP192R1
|
||||||
|
|
||||||
ECP gen keypair
|
ECP gen keypair
|
||||||
depends_on:POLARSSL_ECP_DP_SECP192R1_ENABLED
|
depends_on:POLARSSL_ECP_DP_SECP192R1_ENABLED
|
||||||
|
@ -438,7 +438,7 @@ ecp_tls_write_read_group:id
|
|||||||
END_CASE
|
END_CASE
|
||||||
|
|
||||||
BEGIN_CASE
|
BEGIN_CASE
|
||||||
ecp_check_prvkey:id
|
ecp_check_privkey:id
|
||||||
{
|
{
|
||||||
ecp_group grp;
|
ecp_group grp;
|
||||||
mpi d;
|
mpi d;
|
||||||
@ -449,10 +449,10 @@ ecp_check_prvkey:id
|
|||||||
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( mpi_lset( &d, 0 ) == 0 );
|
TEST_ASSERT( mpi_lset( &d, 0 ) == 0 );
|
||||||
TEST_ASSERT( ecp_check_prvkey( &grp, &d ) == POLARSSL_ERR_ECP_GENERIC );
|
TEST_ASSERT( ecp_check_privkey( &grp, &d ) == POLARSSL_ERR_ECP_GENERIC );
|
||||||
|
|
||||||
TEST_ASSERT( mpi_copy( &d, &grp.N ) == 0 );
|
TEST_ASSERT( mpi_copy( &d, &grp.N ) == 0 );
|
||||||
TEST_ASSERT( ecp_check_prvkey( &grp, &d ) == POLARSSL_ERR_ECP_GENERIC );
|
TEST_ASSERT( ecp_check_privkey( &grp, &d ) == POLARSSL_ERR_ECP_GENERIC );
|
||||||
|
|
||||||
ecp_group_free( &grp );
|
ecp_group_free( &grp );
|
||||||
mpi_free( &d );
|
mpi_free( &d );
|
||||||
@ -478,7 +478,7 @@ ecp_gen_keypair:id
|
|||||||
== 0 );
|
== 0 );
|
||||||
|
|
||||||
TEST_ASSERT( ecp_check_pubkey( &grp, &Q ) == 0 );
|
TEST_ASSERT( ecp_check_pubkey( &grp, &Q ) == 0 );
|
||||||
TEST_ASSERT( ecp_check_prvkey( &grp, &d ) == 0 );
|
TEST_ASSERT( ecp_check_privkey( &grp, &d ) == 0 );
|
||||||
|
|
||||||
ecp_group_free( &grp );
|
ecp_group_free( &grp );
|
||||||
ecp_point_free( &Q );
|
ecp_point_free( &Q );
|
||||||
|
Loading…
Reference in New Issue
Block a user