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_enc.c | |
parent | 224551f73222609952dcc0f21a6b007009c23d60 (diff) |
Avoid shadowing, and a bit of constification while I'm at it.
Diffstat (limited to 'crypto/cast/c_enc.c')
-rw-r--r-- | crypto/cast/c_enc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/cast/c_enc.c b/crypto/cast/c_enc.c index b62b4680b0..ef70c88981 100644 --- a/crypto/cast/c_enc.c +++ b/crypto/cast/c_enc.c @@ -123,15 +123,15 @@ void CAST_decrypt(CAST_LONG *data, CAST_KEY *key) data[0]=r&0xffffffffL; } -void CAST_cbc_encrypt(unsigned char *in, unsigned char *out, long length, - CAST_KEY *ks, unsigned char *iv, int encrypt) +void CAST_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, + CAST_KEY *ks, unsigned char *iv, int _encrypt) { register CAST_LONG tin0,tin1; register CAST_LONG tout0,tout1,xor0,xor1; register long l=length; CAST_LONG tin[2]; - if (encrypt) + if (_encrypt) { n2l(iv,tout0); n2l(iv,tout1); |