aboutsummaryrefslogtreecommitdiff
path: root/src/cm/p1363.h
diff options
context:
space:
mode:
authorJ08nY2017-04-17 01:32:09 +0200
committerJ08nY2017-04-21 21:43:34 +0200
commitca9aba651caacfd80ecc35afe929aaaa91bb2da4 (patch)
treec67fddbf2cb56e4f8f87593cf03a23ca4382a64f /src/cm/p1363.h
parent9dd8c4d727da797eae0d63667531e20c51ac3a7a (diff)
downloadecgen-ca9aba651caacfd80ecc35afe929aaaa91bb2da4.tar.gz
ecgen-ca9aba651caacfd80ecc35afe929aaaa91bb2da4.tar.zst
ecgen-ca9aba651caacfd80ecc35afe929aaaa91bb2da4.zip
Begin CM work
Diffstat (limited to 'src/cm/p1363.h')
-rw-r--r--src/cm/p1363.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/cm/p1363.h b/src/cm/p1363.h
new file mode 100644
index 0000000..e5c9fbd
--- /dev/null
+++ b/src/cm/p1363.h
@@ -0,0 +1,39 @@
+/*
+ * ecgen, tool for generating Elliptic curve domain parameters
+ * Copyright (C) 2017 J08nY
+ */
+/**
+ * @file p1363.h
+ */
+#ifndef ECGEN_P1363_H
+#define ECGEN_P1363_H
+
+#include <pari/pari.h>
+
+typedef struct form_t {
+ GEN A;
+ GEN B;
+ GEN C;
+
+ long m8;
+
+ long I;
+ long J;
+ long K;
+ GEN L;
+ GEN M;
+ GEN N;
+
+ GEN lambda;
+ GEN theta;
+} form_t;
+
+size_t p1363_forms(GEN D, form_t ***forms);
+
+void p1363_free(form_t ***forms, size_t nforms);
+
+GEN p1363_invariant(GEN D, form_t *form);
+
+GEN p1363_poly(GEN D, form_t **forms, size_t nforms);
+
+#endif // ECGEN_P1363_H