diff --git a/library/ecjpake.c b/library/ecjpake.c index 0cd79d05c..65ba0d081 100644 --- a/library/ecjpake.c +++ b/library/ecjpake.c @@ -213,7 +213,7 @@ static int ecjpake_hash( const mbedtls_md_info_t *md_info, p += id_len; /* Compute hash */ - mbedtls_md( md_info, buf, p - buf, hash ); + MBEDTLS_MPI_CHK( mbedtls_md( md_info, buf, p - buf, hash ) ); /* Turn it into an integer mod n */ MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( h, hash,