math/f{25519,goldi}.[ch]: Export the piece type.
[catacomb] / math / fgoldi.h
index b05fd77..4f6c043 100644 (file)
@@ -55,6 +55,13 @@ typedef union {
 #  define FGOLDI_IMPL 12
 #endif
 
+#if FGOLDI_IMPL == 28
+  typedef int32 fgoldi_piece;
+#endif
+#if FGOLDI_IMPL == 12
+  typedef int16 fgoldi_piece;
+#endif
+
 /*----- Functions provided ------------------------------------------------*/
 
 /* --- @fgoldi_load@ --- *