Got started on ecp_add(): generic case done

This commit is contained in:
Manuel Pégourié-Gonnard 2012-11-02 18:14:40 +01:00 committed by Paul Bakker
parent 883f313516
commit ae180d0f20
2 changed files with 144 additions and 1 deletions

View file

@ -36,6 +36,8 @@
/**
* \brief ECP point structure (affine coordinates)
*
* Note: if the point is zero, X and Y are irrelevant and should be freed.
*/
typedef struct
{
@ -145,6 +147,11 @@ ecp_group;
extern "C" {
#endif
/**
* \brief Initialize a point
*/
void ecp_point_init( ecp_point *pt );
/**
* \brief Free the components of a point
*/
@ -155,6 +162,11 @@ void ecp_point_free( ecp_point *pt );
*/
void ecp_group_free( ecp_group *grp );
/**
* \brief Set a point to zero
*/
void ecp_set_zero( ecp_point *pt );
/**
* \brief Copy the contents of point Q into P
*