diff options
author | Bodo Möller <bodo@openssl.org> | 2009-12-22 10:58:33 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2009-12-22 10:58:33 +0000 |
commit | 7427379e9b73da4c15c91a6faad3c916210b0755 (patch) | |
tree | 570f7073c3e4dbc1593f6ef8483487609d9fed31 /crypto/cast/c_enc.c | |
parent | fbed9f8158ef50518706798a1488f9af4be3eb7d (diff) | |
download | openssl-7427379e9b73da4c15c91a6faad3c916210b0755.tar.gz |
Constify crypto/cast.
Diffstat (limited to 'crypto/cast/c_enc.c')
-rw-r--r-- | crypto/cast/c_enc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crypto/cast/c_enc.c b/crypto/cast/c_enc.c index 0fe2cffecc..433b5f11b8 100644 --- a/crypto/cast/c_enc.c +++ b/crypto/cast/c_enc.c @@ -59,7 +59,7 @@ #include <openssl/cast.h> #include "cast_lcl.h" -void CAST_encrypt(CAST_LONG *data, CAST_KEY *key) +void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key) { register CAST_LONG l,r,*k,t; @@ -91,7 +91,7 @@ void CAST_encrypt(CAST_LONG *data, CAST_KEY *key) data[0]=r&0xffffffffL; } -void CAST_decrypt(CAST_LONG *data, CAST_KEY *key) +void CAST_decrypt(CAST_LONG *data, const CAST_KEY *key) { register CAST_LONG l,r,*k,t; @@ -124,7 +124,7 @@ void CAST_decrypt(CAST_LONG *data, CAST_KEY *key) } void CAST_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, - CAST_KEY *ks, unsigned char *iv, int enc) + const CAST_KEY *ks, unsigned char *iv, int enc) { register CAST_LONG tin0,tin1; register CAST_LONG tout0,tout1,xor0,xor1; @@ -204,4 +204,3 @@ void CAST_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, tin0=tin1=tout0=tout1=xor0=xor1=0; tin[0]=tin[1]=0; } - |