Got started on ecp_add(): generic case done
This commit is contained in:
parent
883f313516
commit
ae180d0f20
2 changed files with 144 additions and 1 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue