summaryrefslogtreecommitdiffstats
path: root/crypto/idea
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2006-02-02 15:27:22 +0000
committerBen Laurie <ben@openssl.org>2006-02-02 15:27:22 +0000
commitc22684eac9f583361e7d7be189f1054704c05c88 (patch)
tree805cdd96a69ef9209e606e277bfa2d16abbec40d /crypto/idea
parentc42cd4b8310ed218bd0ba6ece99c1b9d17277a98 (diff)
Constification.
Diffstat (limited to 'crypto/idea')
-rw-r--r--crypto/idea/i_skey.c5
-rw-r--r--crypto/idea/idea.h2
2 files changed, 4 insertions, 3 deletions
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,