1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-01 10:06:53 +03:00

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)
/*