+2003-08-17 Niels Möller <nisse@cuckoo.hack.org>
+
+ * desCode.h (des_keymap, des_bigmap): Deleted extern declarations,
+ they conficted with the static definition in des.c. Reported by
+ Simon Josefsson.
+
+ * des.c (DesSmallFipsEncrypt, DesSmallFipsDecrypt): Moved
+ definitions after the definition of the des_kemap array.
+
2003-08-11 Niels Möller <nisse@cuckoo.hack.org>
* rsa-encrypt.c (rsa_encrypt): Bugfix contributed by
#include "desCode.h"
-static ENCRYPT(DesSmallFipsEncrypt,TEMPSMALL, LOADFIPS,KEYMAPSMALL,SAVEFIPS)
-static DECRYPT(DesSmallFipsDecrypt,TEMPSMALL, LOADFIPS,KEYMAPSMALL,SAVEFIPS)
-
/* various tables */
static const uint32_t
#include "parity.h"
};
+static ENCRYPT(DesSmallFipsEncrypt,TEMPSMALL, LOADFIPS,KEYMAPSMALL,SAVEFIPS)
+static DECRYPT(DesSmallFipsDecrypt,TEMPSMALL, LOADFIPS,KEYMAPSMALL,SAVEFIPS)
+
void
des_fix_parity(unsigned length, uint8_t *dst,
const uint8_t *src)
#include "des.h"
-extern const uint32_t des_keymap[];
-extern const uint32_t des_bigmap[];
-
/* optional customization:
* the idea here is to alter the code so it will still run correctly
* on any machine, but the quickest on the specific machine in mind.