diff options
author | Bodo Möller <bodo@openssl.org> | 2009-12-22 11:58:33 +0100 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2009-12-22 11:58:33 +0100 |
commit | 7427379e9b73da4c15c91a6faad3c916210b0755 (patch) | |
tree | 570f7073c3e4dbc1593f6ef8483487609d9fed31 /crypto/cast/cast.h | |
parent | Alert to use is now defined in spec: update code (diff) | |
download | openssl-7427379e9b73da4c15c91a6faad3c916210b0755.tar.xz openssl-7427379e9b73da4c15c91a6faad3c916210b0755.zip |
Constify crypto/cast.
Diffstat (limited to 'crypto/cast/cast.h')
-rw-r--r-- | crypto/cast/cast.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crypto/cast/cast.h b/crypto/cast/cast.h index 79bb297c1a..1a264f8143 100644 --- a/crypto/cast/cast.h +++ b/crypto/cast/cast.h @@ -85,17 +85,17 @@ typedef struct cast_key_st void CAST_set_key(CAST_KEY *key, int len, const unsigned char *data); -void CAST_ecb_encrypt(const unsigned char *in,unsigned char *out,CAST_KEY *key, +void CAST_ecb_encrypt(const unsigned char *in, unsigned char *out, const CAST_KEY *key, int enc); -void CAST_encrypt(CAST_LONG *data,CAST_KEY *key); -void CAST_decrypt(CAST_LONG *data,CAST_KEY *key); +void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key); +void CAST_decrypt(CAST_LONG *data, const 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); void CAST_cfb64_encrypt(const unsigned char *in, unsigned char *out, - long length, CAST_KEY *schedule, unsigned char *ivec, + long length, const CAST_KEY *schedule, unsigned char *ivec, int *num, int enc); void CAST_ofb64_encrypt(const unsigned char *in, unsigned char *out, - long length, CAST_KEY *schedule, unsigned char *ivec, + long length, const CAST_KEY *schedule, unsigned char *ivec, int *num); #ifdef __cplusplus |