version 1.5, 2000/08/22 05:04:18 |
version 1.8, 2000/08/29 04:03:05 |
|
|
* OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY |
* OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* $OpenXM: OpenXM_contrib2/asir2000/io/io.c,v 1.4 2000/08/21 08:31:38 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/io/io.c,v 1.7 2000/08/25 08:06:19 noro Exp $ |
*/ |
*/ |
#include <stdio.h> |
#include <stdio.h> |
#include "ca.h" |
#include "ca.h" |
|
|
ox_copy_bptr = s; |
ox_copy_bptr = s; |
} |
} |
|
|
|
#if !defined(VISUAL) |
/* |
/* |
* library mode functions |
* library mode functions |
* byte order is controlled by lib_ox_need_conv. |
* byte order is controlled by lib_ox_need_conv. |
|
|
{ |
{ |
ox_do_copy = 1; savevl(0,vl); ox_do_copy = 0; |
ox_do_copy = 1; savevl(0,vl); ox_do_copy = 0; |
} |
} |
|
#endif |
|
|
int gen_fread (ptr,size,nitems,stream) |
int gen_fread (ptr,size,nitems,stream) |
char *ptr; |
char *ptr; |
Line 215 unsigned int *p; |
|
Line 217 unsigned int *p; |
|
gen_fwrite(p,sizeof(unsigned int),1,f); |
gen_fwrite(p,sizeof(unsigned int),1,f); |
} |
} |
|
|
|
#if defined(VISUAL) && defined(DES_ENC) |
int des_encryption; |
int des_encryption; |
static unsigned char asir_deskey[8] = {0xc7,0xe0,0xfc,0xb5,0xc3,0xad,0x8e,0x3a}; |
static unsigned char asir_deskey[8] = {0xc7,0xe0,0xfc,0xb5,0xc3,0xad,0x8e,0x3a}; |
static unsigned char deskey_string[96]; |
static unsigned char deskey_string[96]; |
Line 228 void init_deskey() |
|
Line 231 void init_deskey() |
|
deskey_initialized = 1; |
deskey_initialized = 1; |
} |
} |
} |
} |
|
#endif |
|
|
void write_intarray(f,p,l) |
void write_intarray(f,p,l) |
FILE *f; |
FILE *f; |
|
|
{ |
{ |
int i; |
int i; |
unsigned int t; |
unsigned int t; |
#if defined(VISUAL) |
#if defined(VISUAL) && defined(DES_ENC) |
int l2; |
int l2; |
unsigned int plain[2],encrypted[2]; |
unsigned int plain[2],encrypted[2]; |
|
|
|
|
{ |
{ |
int i; |
int i; |
unsigned int t; |
unsigned int t; |
#if defined(VISUAL) |
#if defined(VISUAL) && defined(DES_ENC) |
int l2; |
int l2; |
unsigned int plain[2],encrypted[2]; |
unsigned int plain[2],encrypted[2]; |
|
|