X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/a9f7f3b2128110740dcd25cfe8d71cd59a18e25f..813390c45f438f411662b1a55678e63f11681eb4:/twofish-mktab.c diff --git a/twofish-mktab.c b/twofish-mktab.c index e30d4cc..1a31463 100644 --- a/twofish-mktab.c +++ b/twofish-mktab.c @@ -1,13 +1,13 @@ /* -*-c-*- * - * $Id: twofish-mktab.c,v 1.3 2000/06/26 17:14:42 mdw Exp $ + * $Id: twofish-mktab.c,v 1.5 2004/04/08 01:36:15 mdw Exp $ * * Build constant tables for Twofish * * (c) 2000 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of Catacomb. * @@ -15,34 +15,18 @@ * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. - * + * * Catacomb 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 Library General Public License for more details. - * + * * You should have received a copy of the GNU Library General Public * License along with Catacomb; if not, write to the Free * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: twofish-mktab.c,v $ - * Revision 1.3 2000/06/26 17:14:42 mdw - * (rslog): Ensure that log(1) = 0 (not 255, as previously). While the two - * are strictly equivalent, it means that the exp table is larger than it - * otherwise needs to be. - * - * Revision 1.2 2000/06/18 23:12:15 mdw - * Change typesetting of Galois Field names. - * - * Revision 1.1 2000/06/17 12:10:17 mdw - * New cipher. - * - */ - /*----- Header files ------------------------------------------------------*/ #include @@ -290,7 +274,7 @@ static void qmds(void) puts(" }, \\\n\ \\"); } else if (j % 4 == 3) - fputs(", \\\n ", stdout); + fputs(", \\\n ", stdout); else fputs(", ", stdout); } @@ -389,14 +373,14 @@ static void rslog(void) int main(void) { fputs("\ -/* -*-c-*- - * +/* -*-c-*-\n\ + *\n\ * Twofish q tables [generated]\n\ - */ - -#ifndef CATACOMB_TWOFISH_TAB_H -#define CATACOMB_TWOFISH_TAB_H - + */\n\ +\n\ +#ifndef CATACOMB_TWOFISH_TAB_H\n\ +#define CATACOMB_TWOFISH_TAB_H\n\ +\n\ ", stdout); /* --- The q tables --- */