aboutsummaryrefslogtreecommitdiff
path: root/src/exhaustive
diff options
context:
space:
mode:
authorJ08nY2018-01-18 18:37:44 +0100
committerJ08nY2018-01-18 18:40:06 +0100
commitcf074191532caef918fb9f502b37697094da317a (patch)
tree9826a5f436aba9fcbfbba8dfd5e615267213123f /src/exhaustive
parentf940f80a2cb69ffcd1f0d608cbb1b0f06e0854d6 (diff)
downloadecgen-cf074191532caef918fb9f502b37697094da317a.tar.gz
ecgen-cf074191532caef918fb9f502b37697094da317a.tar.zst
ecgen-cf074191532caef918fb9f502b37697094da317a.zip
Diffstat (limited to 'src/exhaustive')
-rw-r--r--src/exhaustive/exhaustive.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/exhaustive/exhaustive.c b/src/exhaustive/exhaustive.c
index c6b54e9..fa748f5 100644
--- a/src/exhaustive/exhaustive.c
+++ b/src/exhaustive/exhaustive.c
@@ -3,6 +3,7 @@
* Copyright (C) 2017-2018 J08nY
*/
#include "exhaustive.h"
+#include <misc/config.h>
#include "anomalous.h"
#include "ansi.h"
#include "brainpool.h"
@@ -166,7 +167,11 @@ static void exhaustive_ginit(gen_f *generators) {
}
}
// setup common generators
- generators[OFFSET_CURVE] = &curve_gen_any;
+ if (cfg->method == METHOD_TWIST) {
+ generators[OFFSET_CURVE] = &curve_gen_any_twist;
+ } else {
+ generators[OFFSET_CURVE] = &curve_gen_any;
+ }
switch (cfg->points.type) {
case POINTS_RANDOM: