Fix possible sign extension problem with newer compilers.
* cipher/des.c (READ_64BIT_DATA): Cast to u32 before shifting by 24. * cipher/blowfish.c (do_encrypt_block): Ditto. (do_decrypt_block): Ditto. * cipher/camellia.c (CAMELLIA_RR8): Ditto. * cipher/cast5.c (do_encrypt_block): Ditto. (do_decrypt_block): Ditto. (do_cast_setkey): Ditto. * cipher/twofish.c (INPACK): Ditto. * util/iobuf.c (block_filter): Ditto.
For cipher/des.c
See commit 57af33d9e7c9b20b413b96882e670e75a67a5e65 for details.
- Reported-by: Balint Reczey <balint@balintreczey.hu>
- Signed-off-by: Werner Koch <wk@gnupg.org>