aboutsummaryrefslogtreecommitdiff
path: root/src/math/twists.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/twists.h')
-rw-r--r--src/math/twists.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/math/twists.h b/src/math/twists.h
new file mode 100644
index 0000000..3249047
--- /dev/null
+++ b/src/math/twists.h
@@ -0,0 +1,17 @@
+/*
+ * ecgen, tool for generating Elliptic curve domain parameters
+ * Copyright (C) 2017-2018 J08nY
+ */
+#ifndef ECGEN_TWIST_H
+#define ECGEN_TWIST_H
+
+#include "misc/types.h"
+
+/**
+ * @brief Twists the <code>of</code> curve randomly.
+ * @param to The result of the twist.
+ * @param of The curve to be twisted.
+ */
+void curve_twist_rand(curve_t *to, const curve_t *of);
+
+#endif // ECGEN_TWIST_H