diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2015-07-13 16:16:13 +0300 |
---|---|---|
committer | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2015-07-27 11:47:19 +0300 |
commit | b4b1d872ba651bc44761b35d245b1a519a33f515 (patch) | |
tree | d1243e1f719179ba5ad85f38858c297e5fa07cd8 /cipher/pubkey-util.c | |
parent | e950052bc6f5ff11a7c23091ff3f6b5cc431e875 (diff) | |
download | libgcrypt-b4b1d872ba651bc44761b35d245b1a519a33f515.tar.gz |
Reduce code size for Twofish key-setup and remove key dependend branch
* cipher/twofish.c (poly_to_exp): Increase size by one, change type
from byte to u16 and insert '492' to index 0.
(exp_to_poly): Increase size by 256, let new cells have zero value.
(CALC_S): Execute unconditionally with help of modified tables.
(do_twofish_setkey): Change type for 'tmp' to 'unsigned int'; Un-unroll
CALC_K256 and CALC_K phases to reduce generated object size.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Diffstat (limited to 'cipher/pubkey-util.c')
0 files changed, 0 insertions, 0 deletions