61 lines
1.3 KiB
Diff
61 lines
1.3 KiB
Diff
\ No newline at end of file
|
|
diff -Naur john-1.6.37/src/blowfish.h john-1.6.37-egg/src/blowfish.h
|
|
--- john-1.6.37/src/blowfish.h 1970-01-01 01:00:00.000000000 +0100
|
|
+++ john-1.6.37-egg/src/blowfish.h 2004-07-26 10:33:32.000000000 +0200
|
|
@@ -0,0 +1,55 @@
|
|
+/* modified 19jul1996 by robey -- uses autoconf values now */
|
|
+#ifndef _H_BLOWFISH
|
|
+#define _H_BLOWFISH
|
|
+
|
|
+#include "arch.h"
|
|
+
|
|
+#define bf_N 16
|
|
+#define noErr 0
|
|
+#define DATAERROR -1
|
|
+
|
|
+#define UBYTE_08bits unsigned char
|
|
+#define UWORD_16bits unsigned short
|
|
+
|
|
+#define SIZEOF_INT 4
|
|
+
|
|
+#if SIZEOF_INT==4
|
|
+#define UWORD_32bits unsigned int
|
|
+#else
|
|
+#if SIZEOF_LONG==4
|
|
+#define UWORD_32bits unsigned long
|
|
+#endif
|
|
+#endif
|
|
+
|
|
+/* choose a byte order for your hardware */
|
|
+
|
|
+#if !ARCH_LITTLE_ENDIAN
|
|
+/* ABCD - big endian - motorola */
|
|
+union aword {
|
|
+ UWORD_32bits word;
|
|
+ UBYTE_08bits byte[4];
|
|
+ struct {
|
|
+ unsigned int byte0:8;
|
|
+ unsigned int byte1:8;
|
|
+ unsigned int byte2:8;
|
|
+ unsigned int byte3:8;
|
|
+ } w;
|
|
+};
|
|
+#endif /* !ARCH_LITTLE_ENDIAN */
|
|
+
|
|
+#if ARCH_LITTLE_ENDIAN
|
|
+/* DCBA - little endian - intel */
|
|
+union aword {
|
|
+ UWORD_32bits word;
|
|
+ UBYTE_08bits byte[4];
|
|
+ struct {
|
|
+ unsigned int byte3:8;
|
|
+ unsigned int byte2:8;
|
|
+ unsigned int byte1:8;
|
|
+ unsigned int byte0:8;
|
|
+ } w;
|
|
+};
|
|
+
|
|
+#endif /* ARCH_LITTLE_ENDIAN */
|
|
+
|
|
+#endif
|