Hack on the newly imported X25519 and X448 code.
[secnet] / x448.h
diff --git a/x448.h b/x448.h
index f1b0f2c..ae1672f 100644 (file)
--- a/x448.h
+++ b/x448.h
@@ -1,3 +1,38 @@
+/*
+ * x448.h: Hamburg's X448 key-exchange function
+ */
+/*
+ * This file is Free Software.  It has been modified to as part of its
+ * incorporation into secnet.
+ *
+ * Copyright 2017 Mark Wooding
+ *
+ * You may redistribute this file and/or modify it under the terms of
+ * the permissive licence shown below.
+ *
+ * You may redistribute secnet as a whole and/or modify it under the
+ * terms of the GNU General Public License as published by the Free
+ * Software Foundation; either version 3, or (at your option) any
+ * later version.
+ *
+ * This program 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
+ * along with this program; if not, see
+ * https://www.gnu.org/licenses/gpl.html.
+ */
+/*
+ * Imported from Catacomb, and modified for Secnet (2017-04-30):
+ *
+ *   * Use `fake-mLib-bits.h' in place of the real <mLib/bits.h>.
+ *
+ *   * Strip out the key-management definitions.
+ *
+ * The file's original comment headers are preserved below.
+ */
 /* -*-c-*-
  *
  * The X448 key-agreement algorithm
 
 /*----- Header files ------------------------------------------------------*/
 
-#include <mLib/bits.h>
-
-#ifndef CATACOMB_KEY_H
-#  include "key.h"
-#endif
-
-/*----- Key fetching ------------------------------------------------------*/
-
-typedef struct x448_priv { key_bin priv, pub; } x448_priv;
-typedef struct x448_pub { key_bin pub; } x448_pub;
-
-extern const key_fetchdef x448_pubfetch[], x448_privfetch[];
-#define X448_PUBFETCHSZ 3
-#define X448_PRIVFETCHSZ 6
+#include "fake-mLib-bits.h"
 
 /*----- Important constants -----------------------------------------------*/