diff options
author | Ben Laurie <ben@openssl.org> | 1999-02-13 18:52:38 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-02-13 18:52:38 +0000 |
commit | 4e31df2cd73dbb659fd8a6eca6270fac661c072d (patch) | |
tree | e27cb10012ceeaf8dd433b5cf12b6fd7e73fdb8a /crypto/des/qud_cksm.c | |
parent | e4119b931172a6a28e2ecb65ef41c6f23b89d09c (diff) | |
download | openssl-4e31df2cd73dbb659fd8a6eca6270fac661c072d.tar.gz |
Fix ghastly DES declarations, and all consequential warnings.
Diffstat (limited to 'crypto/des/qud_cksm.c')
-rw-r--r-- | crypto/des/qud_cksm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crypto/des/qud_cksm.c b/crypto/des/qud_cksm.c index 8526abf334..4d5301c241 100644 --- a/crypto/des/qud_cksm.c +++ b/crypto/des/qud_cksm.c @@ -74,11 +74,11 @@ #define NOISE ((DES_LONG)83653421L) DES_LONG des_quad_cksum(input, output, length, out_count, seed) -des_cblock (*input); -des_cblock (*output); +const unsigned char *input; +des_cblocks output; long length; int out_count; -des_cblock (*seed); +des_cblock seed; { DES_LONG z0,z1,t0,t1; int i; @@ -87,10 +87,10 @@ des_cblock (*seed); unsigned char *lp; if (out_count < 1) out_count=1; - lp=(unsigned char *)output; + lp=output; - z0=Q_B0((*seed)[0])|Q_B1((*seed)[1])|Q_B2((*seed)[2])|Q_B3((*seed)[3]); - z1=Q_B0((*seed)[4])|Q_B1((*seed)[5])|Q_B2((*seed)[6])|Q_B3((*seed)[7]); + z0=Q_B0(seed[0])|Q_B1(seed[1])|Q_B2(seed[2])|Q_B3(seed[3]); + z1=Q_B0(seed[4])|Q_B1(seed[5])|Q_B2(seed[6])|Q_B3(seed[7]); for (i=0; ((i<4)&&(i<out_count)); i++) { @@ -133,7 +133,7 @@ des_cblock (*seed); } else { - lp=output[out_count-i-1]; + lp=&output[out_count-i-1]; l2n(z1,lp); l2n(z0,lp); } |