diff options
author | Ezra Peisach <epeisach@mit.edu> | 2002-12-23 18:01:54 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2002-12-23 18:01:54 +0000 |
commit | 3dfda778fd007686f1d5edd0f434d45d74ac982b (patch) | |
tree | 122b8ad768db62ab8aaba18fae2cc6a199a313a3 /src/lib/crypto/des | |
parent | ed470a964a99e4b2b1ce579d1b01ffefe2bd2af6 (diff) | |
download | krb5-3dfda778fd007686f1d5edd0f434d45d74ac982b.tar.gz krb5-3dfda778fd007686f1d5edd0f434d45d74ac982b.tar.xz krb5-3dfda778fd007686f1d5edd0f434d45d74ac982b.zip |
Cleanup unused
variables. Signed vs unsigned cleanup. Ensure variables set before
use.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15065 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/crypto/des')
-rw-r--r-- | src/lib/crypto/des/ChangeLog | 4 | ||||
-rw-r--r-- | src/lib/crypto/des/t_verify.c | 24 |
2 files changed, 18 insertions, 10 deletions
diff --git a/src/lib/crypto/des/ChangeLog b/src/lib/crypto/des/ChangeLog index dd03be7e06..7a8d1d8b70 100644 --- a/src/lib/crypto/des/ChangeLog +++ b/src/lib/crypto/des/ChangeLog @@ -1,3 +1,7 @@ +2002-12-23 Ezra Peisach <epeisach@bu.edu> + + * t_verify.c: Signed vs. unsigned cleanups. Remove unsused variables. + 2002-10-09 Ken Raeburn <raeburn@mit.edu> * string2key.c (mit_des_string_to_key_int): If PRINT_TEST_VECTORS diff --git a/src/lib/crypto/des/t_verify.c b/src/lib/crypto/des/t_verify.c index c31b6c0d33..a6ad07cb89 100644 --- a/src/lib/crypto/des/t_verify.c +++ b/src/lib/crypto/des/t_verify.c @@ -62,6 +62,9 @@ #include <stdio.h> #include "com_err.h" +static void do_encrypt(unsigned char *, unsigned char *); +static void do_decrypt(unsigned char *, unsigned char *); + char *progname; int nflag = 2; int vflag; @@ -129,9 +132,8 @@ main(argc,argv) char *argv[]; { /* Local Declarations */ - int in_length, retval; - void do_encrypt(); - void do_decrypt(); + size_t in_length; + int retval; int i, j; #ifdef WINDOWS @@ -314,7 +316,7 @@ main(argc,argv) printf("\tchecksum\t58 d2 e7 7e 86 06 27 33, "); printf("or some part thereof\n"); input = clear_text2; - mit_des_cbc_cksum(input,cipher_text,(long) strlen((char *)input), + mit_des_cbc_cksum(input,cipher_text, strlen((char *)input), sched,ivec); printf("ACTUAL CBC checksum\n"); printf("\t\tencrypted cksum = (low to high bytes)\n\t\t"); @@ -331,6 +333,7 @@ main(argc,argv) exit(0); } +#if 0 void flip(array) char *array; @@ -352,11 +355,12 @@ flip(array) array++; } } +#endif -void +static void do_encrypt(in,out) - char *in; - char *out; + unsigned char *in; + unsigned char *out; { int i, j; for (i =1; i<=nflag; i++) { @@ -377,10 +381,10 @@ do_encrypt(in,out) } } -void +static void do_decrypt(in,out) - char *out; - char *in; + unsigned char *out; + unsigned char *in; /* try to invert it */ { int i, j; |