version 1.8, 2002/07/03 23:13:02 |
version 1.9, 2003/03/31 20:46:03 |
|
|
int i; /* counter in a for loop */ |
int i; /* counter in a for loop */ |
char *p; /* used to obtain the key */ |
char *p; /* used to obtain the key */ |
Desbuf msgbuf; /* I/O buffer */ |
Desbuf msgbuf; /* I/O buffer */ |
int kflag; /* command-line encryptiooon key */ |
int kflag; /* command-line encryption key */ |
int argc; /* the real arg count */ |
int argc; /* the real arg count */ |
char **argv; /* the real argument vector */ |
char **argv; /* the real argument vector */ |
|
|
|
|
} |
} |
argv[argc] = NULL; |
argv[argc] = NULL; |
|
|
/* initialize the initialization vctor */ |
/* initialize the initialization vector */ |
MEMZERO(ivec, 8); |
MEMZERO(ivec, 8); |
|
|
/* process the argument list */ |
/* process the argument list */ |
|
|
* just switch on the key base |
* just switch on the key base |
*/ |
*/ |
switch(keybase) { |
switch(keybase) { |
case KEY_ASCII: /* ascii to integer */ |
case KEY_ASCII: /* ASCII to integer */ |
(void)strncpy(obuf, ibuf, 8); |
(void)strncpy(obuf, ibuf, 8); |
return; |
return; |
case KEY_DEFAULT: /* tell from context */ |
case KEY_DEFAULT: /* tell from context */ |