Add ECDH primitives

This commit is contained in:
Manuel Pégourié-Gonnard 2013-01-26 16:05:22 +01:00
parent 0bad5c2381
commit 6545ca7bed
4 changed files with 91 additions and 3 deletions

View file

@ -147,11 +147,22 @@ void ecp_group_free( ecp_group *grp );
/**
* \brief Set a point to zero
*
* \param pt Destination point
*
* \return 0 if successful,
* POLARSSL_ERR_MPI_MALLOC_FAILED if memory allocation failed
*/
int ecp_set_zero( ecp_point *pt );
/**
* \brief Tell if a point is zero
*
* \param pt Point to test
*
* \return 1 if point is zero, 0 otherwise
*/
int ecp_is_zero( ecp_point *pt );
/**
* \brief Copy the contents of point Q into P
*