summaryrefslogtreecommitdiffstats
path: root/crypto/des/cfb64ede.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-02-13 18:52:38 +0000
committerBen Laurie <ben@openssl.org>1999-02-13 18:52:38 +0000
commit4e31df2cd73dbb659fd8a6eca6270fac661c072d (patch)
treee27cb10012ceeaf8dd433b5cf12b6fd7e73fdb8a /crypto/des/cfb64ede.c
parente4119b931172a6a28e2ecb65ef41c6f23b89d09c (diff)
Fix ghastly DES declarations, and all consequential warnings.
Diffstat (limited to 'crypto/des/cfb64ede.c')
-rw-r--r--crypto/des/cfb64ede.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/crypto/des/cfb64ede.c b/crypto/des/cfb64ede.c
index 80b8a9eaaa..f19a55ef52 100644
--- a/crypto/des/cfb64ede.c
+++ b/crypto/des/cfb64ede.c
@@ -64,11 +64,11 @@
*/
void des_ede3_cfb64_encrypt(in, out, length, ks1,ks2,ks3, ivec, num, enc)
-unsigned char *in;
+const unsigned char *in;
unsigned char *out;
long length;
des_key_schedule ks1,ks2,ks3;
-des_cblock (*ivec);
+des_cblock ivec;
int *num;
int enc;
{
@@ -78,7 +78,7 @@ int enc;
DES_LONG ti[2];
unsigned char *iv,c,cc;
- iv=(unsigned char *)ivec;
+ iv=ivec;
if (enc)
{
while (l--)
@@ -90,14 +90,14 @@ int enc;
ti[0]=v0;
ti[1]=v1;
- des_encrypt3((DES_LONG *)ti,ks1,ks2,ks3);
+ des_encrypt3(ti,ks1,ks2,ks3);
v0=ti[0];
v1=ti[1];
- iv=(unsigned char *)ivec;
+ iv=ivec;
l2c(v0,iv);
l2c(v1,iv);
- iv=(unsigned char *)ivec;
+ iv=ivec;
}
c= *(in++)^iv[n];
*(out++)=c;
@@ -116,14 +116,14 @@ int enc;
ti[0]=v0;
ti[1]=v1;
- des_encrypt3((DES_LONG *)ti,ks1,ks2,ks3);
+ des_encrypt3(ti,ks1,ks2,ks3);
v0=ti[0];
v1=ti[1];
- iv=(unsigned char *)ivec;
+ iv=ivec;
l2c(v0,iv);
l2c(v1,iv);
- iv=(unsigned char *)ivec;
+ iv=ivec;
}
cc= *(in++);
c=iv[n];