Remove redundant check

Checked by check_pubkey(), called 2 lines later.
This commit is contained in:
Manuel Pégourié-Gonnard 2017-04-20 10:22:22 +02:00
parent 884569cdb4
commit 53fbd63eb4

View file

@ -2105,9 +2105,6 @@ int mbedtls_ecp_mul_restartable( mbedtls_ecp_group *grp, mbedtls_ecp_point *R,
#endif
/* Common sanity checks */
if( mbedtls_mpi_cmp_int( &P->Z, 1 ) != 0 )
return( MBEDTLS_ERR_ECP_BAD_INPUT_DATA );
if( ( ret = mbedtls_ecp_check_privkey( grp, m ) ) != 0 ||
( ret = mbedtls_ecp_check_pubkey( grp, P ) ) != 0 )
return( ret );