Multiplication by negative is now forbidden

This commit is contained in:
Manuel Pégourié-Gonnard 2012-11-11 14:33:59 +01:00 committed by Paul Bakker
parent 8433824d5f
commit 4bdd47d2cb
4 changed files with 29 additions and 20 deletions

View file

@ -201,6 +201,7 @@ int ecp_add( const ecp_group *grp, ecp_point *R,
*
* \return 0 if successful,
* POLARSSL_ERR_MPI_MALLOC_FAILED if memory allocation failed
* POLARSSL_ERR_ECP_GENERIC if m < 0
*/
int ecp_mul( const ecp_group *grp, ecp_point *R,
const mpi *m, const ecp_point *P );