]> git.ipfire.org Git - thirdparty/nettle.git/commit
* serpent.c (ROUNDS): Deleted macro.
authorNiels Möller <nisse@lysator.liu.se>
Wed, 1 Jun 2011 21:17:14 +0000 (23:17 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Wed, 1 Jun 2011 21:17:14 +0000 (23:17 +0200)
commite57e557fe31c12fe069df195da8fc7cee5671010
treef440d5b3e53c6b14242de256bbb23dfc69f5ffa5
parent763ed53eda5e6dd8f98b6f628f4b9f446148c052
* serpent.c (ROUNDS): Deleted macro.
(serpent_block_t): Deleted array typedef.
(KEYXOR): New macro, replacing BLOCK_XOR.
(BLOCK_COPY, SBOX, SBOX_INVERSE): Deleted macros.
(LINEAR_TRANSFORMATION): Use four separate arguments.
(LINEAR_TRANSFORMATION_INVERSE): Likewise.
(ROUND): Take separate arguments for all input and output words.
(ROUND_INVERSE): Likewise.
(ROUND_LAST, ROUND_FIRST_INVERSE): Deleted macros.
(serpent_set_key): Moved loop termination test.
(serpent_encrypt): Rewrote with unrolling of just eight rounds,
and without serpent_block_t.
(serpent_decrypt): Likewise.

Rev: nettle/ChangeLog:1.174
Rev: nettle/serpent.c:1.7
ChangeLog
serpent.c