summaryrefslogtreecommitdiff
path: root/cipher/cast5.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2000-07-14 17:34:52 +0000
committerWerner Koch <wk@gnupg.org>2000-07-14 17:34:52 +0000
commit74386120dad6b3da62db37f7044267c8ef34689b (patch)
tree16fc58b6817d55a9556192a064d573ea8a174a93 /cipher/cast5.c
parenteef468f4897c6d46fe46c2a9635151e2257e3dd1 (diff)
downloadlibgcrypt-74386120dad6b3da62db37f7044267c8ef34689b.tar.gz
See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner Koch
Diffstat (limited to 'cipher/cast5.c')
-rw-r--r--cipher/cast5.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/cipher/cast5.c b/cipher/cast5.c
index aaa0a42e..64f6bb0e 100644
--- a/cipher/cast5.c
+++ b/cipher/cast5.c
@@ -610,9 +610,13 @@ cast5_get_info( int algo, size_t *keylen,
*keylen = 128;
*blocksize = CAST5_BLOCKSIZE;
*contextsize = sizeof(CAST5_context);
- *r_setkey = FNCCAST_SETKEY(cast_setkey);
- *r_encrypt= FNCCAST_CRYPT(encrypt_block);
- *r_decrypt= FNCCAST_CRYPT(decrypt_block);
+ *(int (**)(CAST5_context*, byte*, unsigned))r_setkey
+ = cast_setkey;
+ *(void (**)(CAST5_context*, byte*, byte*))r_encrypt
+ = encrypt_block;
+ *(void (**)(CAST5_context*, byte*, byte*))r_decrypt
+ = decrypt_block;
+
if( algo == CIPHER_ALGO_CAST5 )
return "CAST5";