Adapt EC-JPAKE test suite to hardcodable hash

This commit is contained in:
Manuel Pégourié-Gonnard 2019-09-12 09:58:37 +02:00
parent e5a0b366f8
commit 6d229f8af0

View File

@ -247,7 +247,7 @@ void read_bad_md( data_t *msg )
mbedtls_ecjpake_init( &corrupt_ctx );
TEST_ASSERT( mbedtls_ecjpake_setup( &corrupt_ctx, any_role,
MBEDTLS_MD_SHA256, MBEDTLS_ECP_DP_SECP256R1, pw, pw_len ) == 0 );
corrupt_ctx.md_info = NULL;
corrupt_ctx.md_info = MBEDTLS_MD_INVALID_HANDLE;
TEST_ASSERT( mbedtls_ecjpake_read_round_one( &corrupt_ctx, msg->x,
msg->len ) == MBEDTLS_ERR_MD_BAD_INPUT_DATA );