diff options
Diffstat (limited to 'src/lib/libcrypto/cast')
-rw-r--r-- | src/lib/libcrypto/cast/c_skey.c | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/cast/cast.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/cast/c_skey.c b/src/lib/libcrypto/cast/c_skey.c index acf2c3eeb5..76e40005c9 100644 --- a/src/lib/libcrypto/cast/c_skey.c +++ b/src/lib/libcrypto/cast/c_skey.c | |||
@@ -72,7 +72,7 @@ | |||
72 | #define S6 CAST_S_table6 | 72 | #define S6 CAST_S_table6 |
73 | #define S7 CAST_S_table7 | 73 | #define S7 CAST_S_table7 |
74 | 74 | ||
75 | void CAST_set_key(CAST_KEY *key, int len, unsigned char *data) | 75 | void CAST_set_key(CAST_KEY *key, int len, const unsigned char *data) |
76 | { | 76 | { |
77 | CAST_LONG x[16]; | 77 | CAST_LONG x[16]; |
78 | CAST_LONG z[16]; | 78 | CAST_LONG z[16]; |
diff --git a/src/lib/libcrypto/cast/cast.h b/src/lib/libcrypto/cast/cast.h index 6cc5e8aa8c..e24e133099 100644 --- a/src/lib/libcrypto/cast/cast.h +++ b/src/lib/libcrypto/cast/cast.h | |||
@@ -82,7 +82,7 @@ typedef struct cast_key_st | |||
82 | } CAST_KEY; | 82 | } CAST_KEY; |
83 | 83 | ||
84 | 84 | ||
85 | void CAST_set_key(CAST_KEY *key, int len, unsigned char *data); | 85 | void CAST_set_key(CAST_KEY *key, int len, const unsigned char *data); |
86 | void CAST_ecb_encrypt(const unsigned char *in,unsigned char *out,CAST_KEY *key, | 86 | void CAST_ecb_encrypt(const unsigned char *in,unsigned char *out,CAST_KEY *key, |
87 | int enc); | 87 | int enc); |
88 | void CAST_encrypt(CAST_LONG *data,CAST_KEY *key); | 88 | void CAST_encrypt(CAST_LONG *data,CAST_KEY *key); |