Merge remote-tracking branch 'upstream-restricted/pr/613' into mbedtls-2.16-restricted

This commit is contained in:
Gilles Peskine
2019-08-14 16:36:30 +02:00
4 changed files with 30 additions and 1 deletions

View File

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