projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math/ec.c (ec_stdsub): Remove redundant `EC_FIX'.
[u/mdw/catacomb]
/
symm
/
blowfish-mktab.c
diff --git
a/symm/blowfish-mktab.c
b/symm/blowfish-mktab.c
index
752fb32
..
72b4fc7
100644
(file)
--- 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\
* 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\
\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)
{ ", 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)
else if (i % 4 == 3)
- fputs(",
\\
\n ", stdout);
+ fputs(",\n ", stdout);
else
fputs(", ", stdout);
}
else
fputs(", ", stdout);
}
@@
-168,13
+165,11
@@
int main(void)
printf("0x%08x", *d++);
if (i == 255) {
if (j == 3)
printf("0x%08x", *d++);
if (i == 255) {
if (j == 3)
- fputs(" }
\\\n}\n\n#endif
\n", stdout);
+ fputs(" }
\n};
\n", stdout);
else
else
- fputs(" }, \\\n\
- \\\n\
- { ", stdout);
+ fputs(" },\n\n { ", stdout);
} else if (i % 4 == 3)
} else if (i % 4 == 3)
- fputs(",
\\
\n ", stdout);
+ fputs(",\n ", stdout);
else
fputs(", ", stdout);
}
else
fputs(", ", stdout);
}