Patch for twofish.c
Martin Kahlert
martin.kahlert at mchp.siemens.de
Tue Feb 22 14:25:41 CET 2000
Hi,
here is a fix for some small glitches in ciphers/twofish.c:
It avoids compiler warnings an is cleaner.
The diff was made against version 1.0.1c
Hope that helps a bit and thanks for the good work,
Martin.
*** twofish.c Tue Feb 22 14:19:05 2000
--- twofish_new.c Tue Feb 22 14:19:20 2000
***************
*** 987,997 ****
*keylen = algo==10? 256 : 128;
*blocksize = 16;
*contextsize = sizeof (TWOFISH_context);
! *(int (**)(const TWOFISH_context*, byte*, unsigned))r_setkey
= twofish_setkey;
! *(void (**)(const TWOFISH_context*, byte*, byte*))r_encrypt
= twofish_encrypt;
! *(void (**)(const TWOFISH_context*, byte*, byte*))r_decrypt
= twofish_decrypt;
if( algo == 10 )
--- 987,997 ----
*keylen = algo==10? 256 : 128;
*blocksize = 16;
*contextsize = sizeof (TWOFISH_context);
! *(int (**)(TWOFISH_context*, const byte*, const unsigned))r_setkey
= twofish_setkey;
! *(void (**)(const TWOFISH_context*, byte*, const byte*))r_encrypt
= twofish_encrypt;
! *(void (**)(const TWOFISH_context*, byte*, const byte*))r_decrypt
= twofish_decrypt;
if( algo == 10 )
More information about the Gnupg-devel
mailing list