mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 09:35:39 +00:00
Adapt EC-JPAKE test suite to hardcodable hash
This commit is contained in:
parent
e5a0b366f8
commit
6d229f8af0
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue