X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/0f00dc4c8eb47e67bc0f148c2dd109f73a451e0a..3e248c3b5b309bc03eb5f70762d3f5671d51f996:/symm/blowfish-mktab.c diff --git a/symm/blowfish-mktab.c b/symm/blowfish-mktab.c index 752fb32..72b4fc7 100644 --- a/symm/blowfish-mktab.c +++ b/symm/blowfish-mktab.c @@ -145,20 +145,17 @@ int main(void) * Blowfish initial key table [generated]\n\ */\n\ \n\ -#ifndef CATACOMB_BLOWFISH_TAB_H\n\ -#define CATACOMB_BLOWFISH_TAB_H\n\ +#include \"blowfish.h\"\n\ \n\ -#define BLOWFISH_IKEY { \\\n\ +const blowfish_ctx blowfish_ikey = {\n\ { ", stdout); for (i = 0; i < 18; i++) { printf("0x%08x", *d++); if (i == 17) - fputs(" }, \\\n\ - \\\n\ - { ", stdout); + fputs(" },\n\n { ", stdout); else if (i % 4 == 3) - fputs(", \\\n ", stdout); + fputs(",\n ", stdout); else fputs(", ", stdout); } @@ -168,13 +165,11 @@ int main(void) printf("0x%08x", *d++); if (i == 255) { if (j == 3) - fputs(" } \\\n}\n\n#endif\n", stdout); + fputs(" }\n};\n", stdout); else - fputs(" }, \\\n\ - \\\n\ - { ", stdout); + fputs(" },\n\n { ", stdout); } else if (i % 4 == 3) - fputs(", \\\n ", stdout); + fputs(",\n ", stdout); else fputs(", ", stdout); }