Support subgroups of binary fields.
[u/mdw/catacomb] / group-guts.h
index c684579..8fbebe7 100644 (file)
 #  include "mpmont.h"
 #endif
 
+#ifndef CATACOMB_GFREDUCE_H
+#  include "gfreduce.h"
+#endif
+
 #ifndef CATACOMB_GROUP_H
 #  include "group.h"
 #endif
@@ -66,6 +70,13 @@ typedef struct gctx_ec {
   ec_info ei;
 } gctx_ec;
 
+typedef struct gctx_bin {
+  group g;
+  mp *gen;
+  mp *one;
+  gfreduce r;
+} gctx_bin;
+
 /*----- That's all, folks -------------------------------------------------*/
 
 #ifdef __cplusplus