Home GnuPG

Improve Serpent key setup speed
9897ccb38150Unpublished

Unpublished Commit ยท Learn More

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

Description

Improve Serpent key setup speed

* cipher/serpent.c (SBOX, SBOX_INVERSE): Remove index argument.
(serpent_subkeys_generate): Use smaller temporary arrays for subkey
generation and perform stack clearing locally.
(serpent_setkey_internal): Use wipememory to clear stack and remove
_gcry_burn_stack.
(serpent_setkey): Remove unneeded _gcry_burn_stack.

Avoid using large arrays and large stack burning to gain extra speed for
key setup.

  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Nov 4 2013, 8:28 PM
Parents
rCb8515aa70b00: Modify encrypt/decrypt arguments for in-place
Branches
Unknown
Tags
Unknown

Event Timeline

Jussi Kivilinna <jussi.kivilinna@iki.fi> committed rC9897ccb38150: Improve Serpent key setup speed (authored by Jussi Kivilinna <jussi.kivilinna@iki.fi>).Nov 6 2013, 6:23 PM