mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01:00
Allowed point at infinity, supressed ecp_double()
This commit is contained in:
parent
1e8c8ecd95
commit
5179e463d5
2 changed files with 8 additions and 16 deletions
|
|
@ -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)
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue