=================================================================== RCS file: /home/cvs/OpenXM/src/ox_ntl/crypt/des/des.c,v retrieving revision 1.1 retrieving revision 1.4 diff -u -p -r1.1 -r1.4 --- OpenXM/src/ox_ntl/crypt/des/des.c 2004/07/11 00:32:17 1.1 +++ OpenXM/src/ox_ntl/crypt/des/des.c 2005/06/19 15:45:38 1.4 @@ -1,4 +1,4 @@ -/* $OpenXM$ */ +/* $OpenXM: OpenXM/src/ox_ntl/crypt/des/des.c,v 1.3 2005/06/19 15:29:00 iwane Exp $ */ /* * FIPS PUB 46-3 * DATA ENCRYPTION STANDARD @@ -8,9 +8,12 @@ #include "des.h" #include "block.h" +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #define BLOCK 8 -#define inline inline /*===========================================================* * KEY STRUCT @@ -391,7 +394,7 @@ f_(uint32_t r, uint32_t kl, uint32_t kr) } /*===========================================================* - * BASE CRIPTO + * BASE CRYPTO *===========================================================*/ void des_dec_i( @@ -517,7 +520,7 @@ des_dec_c(const des_key *key, const unsigned char *enc } /*===========================================================* - * CRIPTO: length of input data is "64 * n" byte + * CRYPTO: length of input data is "64 * n" byte *===========================================================*/ static int des_prm_chk(int datalen, int buflen) @@ -554,7 +557,7 @@ des_dec_ecb(const des_key *key, int len, const unsigne int -des_enc_cbc(const des_key *key, const unsigned char *iv, int len, +des_enc_cbc(const des_key *key, unsigned char *iv, int len, const unsigned char *data, unsigned char *buf) { int ret; @@ -566,7 +569,7 @@ des_enc_cbc(const des_key *key, const unsigned char *i int -des_dec_cbc(const des_key *key, const unsigned char *iv, int len, +des_dec_cbc(const des_key *key, unsigned char *iv, int len, const unsigned char *data, unsigned char *buf) { int ret;