aboutsummaryrefslogtreecommitdiff
path: root/src/math/point.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/point.h')
-rw-r--r--src/math/point.h44
1 files changed, 41 insertions, 3 deletions
diff --git a/src/math/point.h b/src/math/point.h
index 064dadc..ed10bdb 100644
--- a/src/math/point.h
+++ b/src/math/point.h
@@ -11,14 +11,15 @@
*
* @return
*/
-point_t *point_new();
+point_t *point_new(void);
/**
*
- * @param num
+ * @param src
+ * @param dest
* @return
*/
-point_t **points_new(size_t num);
+point_t *point_copy(point_t *src, point_t *dest);
/**
*
@@ -28,6 +29,22 @@ void point_free(point_t **point);
/**
*
+ * @param num
+ * @return
+ */
+point_t **points_new(size_t num);
+
+/**
+ *
+ * @param src
+ * @param dest
+ * @param num
+ * @return
+ */
+point_t **points_copy(point_t **src, point_t **dest, size_t num);
+
+/**
+ *
* @param point
*/
void points_free(point_t ***point);
@@ -50,4 +67,25 @@ int point_random(curve_t *curve, config_t *config, ...);
*/
int points_random(curve_t *curve, config_t *config, ...);
+/**
+ * Cauchy:
+ * Let G be a finite group and p be a prime. If p divides the order of G, then
+ * G has an element of order p.
+ *
+ * @param curve
+ * @param config
+ * @param ...
+ * @return
+ */
+int points_prime(curve_t *curve, config_t *config, ...);
+
+/**
+ *
+ * @param curve
+ * @param config
+ * @param ...
+ * @return
+ */
+int points_generators(curve_t *curve, config_t *config, ...);
+
#endif // ECGEN_POINT_H