Allowed point at infinity, supressed ecp_double()

This commit is contained in:
Manuel Pégourié-Gonnard 2012-10-31 19:37:54 +01:00 committed by Paul Bakker
parent 1e8c8ecd95
commit 5179e463d5
2 changed files with 8 additions and 16 deletions

View file

@ -44,6 +44,7 @@ void ecp_point_free( ecp_point *pt )
if( pt == NULL )
return;
pt->is_zero = 1;
mpi_free( &( pt->X ) );
mpi_free( &( pt->Y ) );
}
@ -62,6 +63,8 @@ void ecp_group_free( ecp_group *grp )
ecp_point_free( &( grp->G ) );
}
#if defined(POLARSSL_SELF_TEST)
/*