diff options
author | Ben Laurie <ben@openssl.org> | 1999-05-13 17:10:42 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-05-13 17:10:42 +0000 |
commit | 90ba7e21e1e04ba833c807bcb3dc2bdc5136a6b5 (patch) | |
tree | ef2bc7e23be9f0d0efdd7bf9c4531696bede3b00 /crypto/cast/c_ofb64.c | |
parent | 224551f73222609952dcc0f21a6b007009c23d60 (diff) | |
download | openssl-90ba7e21e1e04ba833c807bcb3dc2bdc5136a6b5.tar.gz |
Avoid shadowing, and a bit of constification while I'm at it.
Diffstat (limited to 'crypto/cast/c_ofb64.c')
-rw-r--r-- | crypto/cast/c_ofb64.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/cast/c_ofb64.c b/crypto/cast/c_ofb64.c index 4249870d9e..fd0469a62f 100644 --- a/crypto/cast/c_ofb64.c +++ b/crypto/cast/c_ofb64.c @@ -63,8 +63,9 @@ * used. The extra state information to record how much of the * 64bit block we have used is contained in *num; */ -void CAST_ofb64_encrypt(unsigned char *in, unsigned char *out, long length, - CAST_KEY *schedule, unsigned char *ivec, int *num) +void CAST_ofb64_encrypt(const unsigned char *in, unsigned char *out, + long length, CAST_KEY *schedule, unsigned char *ivec, + int *num) { register CAST_LONG v0,v1,t; register int n= *num; @@ -75,7 +76,7 @@ void CAST_ofb64_encrypt(unsigned char *in, unsigned char *out, long length, unsigned char *iv; int save=0; - iv=(unsigned char *)ivec; + iv=ivec; n2l(iv,v0); n2l(iv,v1); ti[0]=v0; @@ -100,7 +101,7 @@ void CAST_ofb64_encrypt(unsigned char *in, unsigned char *out, long length, { v0=ti[0]; v1=ti[1]; - iv=(unsigned char *)ivec; + iv=ivec; l2n(v0,iv); l2n(v1,iv); } |