2
void encode (in,out,count)
28
void decode (in,out,count)
32
register i, n1, n2, nr1, nr2;
37
if (cryptsize > 0) free (cryptbuf);
39
} else if (x > cryptsize) {
40
if (cryptsize > 0) free (cryptbuf);
41
cryptbuf = malloc ((unsigned)x+1);
43
return (scmerr (-1,"Can't allocate encryption buffer"));
47
static int cryptsize = 0; /* size of current cryptbuf */
59
for (i=0; i<ROTORSZ; i++) t1[i] = t2[i] = t3[i] = 0;
60
(void) strncpy(buf, pw, 8);
61
(void) strncpy(buf, crypt(buf, buf), 13);
66
(void) getcryptbuf (0);
74
static char t1[ROTORSZ];
75
static char t2[ROTORSZ];
76
static char t3[ROTORSZ];
78
int cryptflag = 0; /* whether to encrypt/decrypt data */
79
char *cryptbuf; /* buffer for data encryption/decryption */
84
extern char *malloc();