Commit 93f41dbd authored by Manuel Pégourié-Gonnard's avatar Manuel Pégourié-Gonnard
Browse files

Fix possible issue in corner-case for ecp_mul_mx()

parent 7a949d3f
......@@ -1540,6 +1540,9 @@ static int ecp_mul_mxz( ecp_group *grp, ecp_point *R,
MPI_CHK( mpi_lset( &R->Z, 0 ) );
mpi_free( &R->Y );
/* RP.X might be sligtly larger than P, so reduce it */
/* Randomize coordinates of the starting point */
if( f_rng != NULL )
MPI_CHK( ecp_randomize_mxz( grp, &RP, f_rng, p_rng ) );
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment