whirlpool.py: fix WhirlpoolAdd for bug #406407
authorZac Medico <zmedico@gentoo.org>
Mon, 5 Mar 2012 09:55:39 +0000 (01:55 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 5 Mar 2012 09:55:39 +0000 (01:55 -0800)
commit3596fc3822bb82dfe05a58fdb78220e399175a4d
tree2ea3f9698887608355990864cb1b78835868fe9a
parent32d19be14e22ada479963ba8627452f5f2d89b94
whirlpool.py: fix WhirlpoolAdd for bug #406407

This file is a python port of Whirlpool.c the reference implementation:

  http://www.larc.usp.br/~pbarreto/whirlpool.zip

Comparison of both implementations reveals a difference in loop logic
at the very beginning of the WhirlpoolAdd function, which is fixed now.
pym/portage/util/whirlpool.py