From 6d229f8af0f8c34bd80d2cafd1e3c2e6bfde8b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 12 Sep 2019 09:58:37 +0200 Subject: [PATCH] Adapt EC-JPAKE test suite to hardcodable hash --- tests/suites/test_suite_ecjpake.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/suites/test_suite_ecjpake.function b/tests/suites/test_suite_ecjpake.function index 38f190de2..fefd1605c 100644 --- a/tests/suites/test_suite_ecjpake.function +++ b/tests/suites/test_suite_ecjpake.function @@ -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 );