ec-field-test.c: Make the field-element type use internal format.
[secnet] / f25519.h
index fc75546..c0ce117 100644 (file)
--- a/f25519.h
+++ b/f25519.h
@@ -7,7 +7,26 @@
 
 /*----- Licensing notice --------------------------------------------------*
  *
- * This file is part of Catacomb.
+ * This file is part of secnet.
+ * See README for full list of copyright holders.
+ *
+ * secnet is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version d of the License, or
+ * (at your option) any later version.
+ *
+ * secnet is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * version 3 along with secnet; if not, see
+ * https://www.gnu.org/licenses/gpl.html.
+ *
+ * This file was originally part of Catacomb, but has been automatically
+ * modified for incorporation into secnet: see `import-catacomb-crypto'
+ * for details.
  *
  * Catacomb is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Library General Public License as
@@ -34,7 +53,7 @@
 
 /*----- Header files ------------------------------------------------------*/
 
-#include <mLib/bits.h>
+#include "fake-mLib-bits.h"
 
 #ifndef CATACOMB_QFARITH_H
 #  include "qfarith.h"
 
 typedef union {
   int32 p26[10];
-  int16 p10[26];
 } f25519;
 
-#if !defined(F25519_IMPL) && defined(HAVE_INT64)
-#  define F25519_IMPL 26
-#endif
-
-#ifndef F25519_IMPL
-#  define F25519_IMPL 10
-#endif
+  typedef int32 f25519_piece;
 
 /*----- Functions provided ------------------------------------------------*/