Add initialization for structures

Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
Gabor Mezei 2022-09-27 18:48:44 +02:00
parent f29c2a5313
commit 0bb138241b
No known key found for this signature in database
GPG key ID: F072ACA227ACD71D
2 changed files with 3 additions and 0 deletions

View file

@ -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,

View file

@ -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,