From: Ben Laurie Date: Thu, 2 Feb 2006 15:27:22 +0000 (+0000) Subject: Constification. X-Git-Tag: OpenSSL_0_9_8b~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c22684eac9f583361e7d7be189f1054704c05c88;p=openssl Constification. --- diff --git a/crypto/idea/i_skey.c b/crypto/idea/i_skey.c index 1c95bc9c7b..3b1bbd8a45 100644 --- a/crypto/idea/i_skey.c +++ b/crypto/idea/i_skey.c @@ -94,10 +94,11 @@ void idea_set_encrypt_key(const unsigned char *key, IDEA_KEY_SCHEDULE *ks) } } -void idea_set_decrypt_key(IDEA_KEY_SCHEDULE *ek, IDEA_KEY_SCHEDULE *dk) +void idea_set_decrypt_key(const IDEA_KEY_SCHEDULE *ek, IDEA_KEY_SCHEDULE *dk) { int r; - register IDEA_INT *fp,*tp,t; + register IDEA_INT *tp,t; + const IDEA_INT *fp; tp= &(dk->data[0][0]); fp= &(ek->data[8][0]); diff --git a/crypto/idea/idea.h b/crypto/idea/idea.h index 5782e54b0f..bf97a37e39 100644 --- a/crypto/idea/idea.h +++ b/crypto/idea/idea.h @@ -84,7 +84,7 @@ const char *idea_options(void); void idea_ecb_encrypt(const unsigned char *in, unsigned char *out, IDEA_KEY_SCHEDULE *ks); void idea_set_encrypt_key(const unsigned char *key, IDEA_KEY_SCHEDULE *ks); -void idea_set_decrypt_key(IDEA_KEY_SCHEDULE *ek, IDEA_KEY_SCHEDULE *dk); +void idea_set_decrypt_key(const IDEA_KEY_SCHEDULE *ek, IDEA_KEY_SCHEDULE *dk); void idea_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv,int enc); void idea_cfb64_encrypt(const unsigned char *in, unsigned char *out,