Home GnuPG

Reduce code size for Twofish key-setup and remove key dependend branch
b4b1d872ba65Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
jukiviliAuthored on Jul 13 2015, 3:16 PM
Parents
rCe950052bc6f5: Reduce amount of duplicated code in OCB bulk implementations
Branches
Unknown
Tags
Unknown

Event Timeline

Jussi Kivilinna <jussi.kivilinna@iki.fi> committed rCb4b1d872ba65: Reduce code size for Twofish key-setup and remove key dependend branch (authored by Jussi Kivilinna <jussi.kivilinna@iki.fi>).Jul 27 2015, 10:47 AM