Add initialization for structures
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
f29c2a5313
commit
0bb138241b
2 changed files with 3 additions and 0 deletions
|
@ -50,6 +50,7 @@ void ecdh_invalid_param( )
|
||||||
mbedtls_ecp_keypair kp;
|
mbedtls_ecp_keypair kp;
|
||||||
int invalid_side = 42;
|
int invalid_side = 42;
|
||||||
|
|
||||||
|
mbedtls_ecdh_init( &ctx );
|
||||||
mbedtls_ecp_keypair_init( &kp );
|
mbedtls_ecp_keypair_init( &kp );
|
||||||
|
|
||||||
TEST_EQUAL( MBEDTLS_ERR_ECP_BAD_INPUT_DATA,
|
TEST_EQUAL( MBEDTLS_ERR_ECP_BAD_INPUT_DATA,
|
||||||
|
|
|
@ -109,6 +109,8 @@ void ecjpake_invalid_param( )
|
||||||
mbedtls_md_type_t valid_md = MBEDTLS_MD_SHA256;
|
mbedtls_md_type_t valid_md = MBEDTLS_MD_SHA256;
|
||||||
mbedtls_ecp_group_id valid_group = MBEDTLS_ECP_DP_SECP256R1;
|
mbedtls_ecp_group_id valid_group = MBEDTLS_ECP_DP_SECP256R1;
|
||||||
|
|
||||||
|
mbedtls_ecjpake_init( &ctx );
|
||||||
|
|
||||||
TEST_EQUAL( MBEDTLS_ERR_ECP_BAD_INPUT_DATA,
|
TEST_EQUAL( MBEDTLS_ERR_ECP_BAD_INPUT_DATA,
|
||||||
mbedtls_ecjpake_setup( &ctx,
|
mbedtls_ecjpake_setup( &ctx,
|
||||||
invalid_role,
|
invalid_role,
|
||||||
|
|
Loading…
Reference in a new issue