aboutsummaryrefslogtreecommitdiffstats
path: root/cipher
diff options
context:
space:
mode:
Diffstat (limited to 'cipher')
-rw-r--r--cipher/ChangeLog5
-rw-r--r--cipher/twofish.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/cipher/ChangeLog b/cipher/ChangeLog
index cfbef810a..e0e8f917c 100644
--- a/cipher/ChangeLog
+++ b/cipher/ChangeLog
@@ -1,3 +1,8 @@
+Wed Feb 23 10:07:57 CET 2000 Werner Koch <[email protected]>
+
+ * twofish.c (twofish_get_info): Add some const to the casts. By Martin
+ Kahlert.
+
Mon Feb 14 14:30:20 CET 2000 Werner Koch <[email protected]>
(update_random_seed_file): Silently ignore update request when pool
diff --git a/cipher/twofish.c b/cipher/twofish.c
index 157a13735..fa84e26f1 100644
--- a/cipher/twofish.c
+++ b/cipher/twofish.c
@@ -987,11 +987,11 @@ twofish_get_info (int algo, size_t *keylen,
*keylen = algo==10? 256 : 128;
*blocksize = 16;
*contextsize = sizeof (TWOFISH_context);
- *(int (**)(const TWOFISH_context*, byte*, unsigned))r_setkey
+ *(int (**)(const TWOFISH_context*, const byte*, unsigned))r_setkey
= twofish_setkey;
- *(void (**)(const TWOFISH_context*, byte*, byte*))r_encrypt
+ *(void (**)(const TWOFISH_context*, byte*, const byte*))r_encrypt
= twofish_encrypt;
- *(void (**)(const TWOFISH_context*, byte*, byte*))r_decrypt
+ *(void (**)(const TWOFISH_context*, byte*, const byte*))r_decrypt
= twofish_decrypt;
if( algo == 10 )