diff options
| author | J08nY | 2022-12-07 14:46:04 +0100 |
|---|---|---|
| committer | J08nY | 2022-12-07 14:46:04 +0100 |
| commit | 651fc7ffe96ecf81418bedadcf38039cc8e06292 (patch) | |
| tree | 01ef5efd2ff773c132b7397b596ba03ea4db4d0d /src/gen | |
| parent | f1c8102e4e27ca3dc89b340e6a65b30e73c77d4a (diff) | |
| download | ecgen-651fc7ffe96ecf81418bedadcf38039cc8e06292.tar.gz ecgen-651fc7ffe96ecf81418bedadcf38039cc8e06292.tar.zst ecgen-651fc7ffe96ecf81418bedadcf38039cc8e06292.zip | |
Fix #17.
Diffstat (limited to 'src/gen')
| -rw-r--r-- | src/gen/gens.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gen/gens.c b/src/gen/gens.c index 6e93f64..965a19e 100644 --- a/src/gen/gens.c +++ b/src/gen/gens.c @@ -7,6 +7,7 @@ #include "math/subgroup.h" #include "obj/point.h" #include "obj/subgroup.h" +#include "misc/compat.h" static subgroup_t *gens_point(GEN point, const curve_t *curve) { subgroup_t *sub = subgroup_new(); @@ -103,7 +104,7 @@ CHECK(gens_check_anomalous) { } GEN gens_get_embedding(GEN prime, GEN generator_order) { - return order(mkintmod(prime, generator_order)); + return znorder(mkintmod(prime, generator_order), NULL); } CHECK(gens_check_embedding) { |
