Remove redundant check
Checked by check_pubkey(), called 2 lines later.
This commit is contained in:
parent
884569cdb4
commit
53fbd63eb4
1 changed files with 0 additions and 3 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue