Make Whirlpool use the _gcry_md_block_write helper
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 21 Sep 2013 10:54:38 +0000 (13:54 +0300)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Mon, 30 Sep 2013 17:26:16 +0000 (20:26 +0300)
commit68cefd0f1d60ac33b58031df9b1d165cb1bf0f14
tree31103c7460db0fddbde8384dde0ed77535507915
parenta96d622e1a36d40d1504b7ada567e90ec9957443
Make Whirlpool use the _gcry_md_block_write helper

* cipher/whirlpool.c (whirlpool_context_t): Add 'bctx', remove
'buffer', 'count' and 'nblocks'.
(whirlpool_init): Initialize 'bctx'.
(whirlpool_transform): Adjust context argument type and burn stack
depth.
(whirlpool_add): Remove.
(whirlpool_write): Use _gcry_md_block_write.
(whirlpool_final, whirlpool_read): Adjust for 'bctx' usage.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
cipher/hash-common.h
cipher/whirlpool.c