Reduce overhead on generic hash write function
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 21 Mar 2019 17:43:05 +0000 (19:43 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 23 Mar 2019 18:41:57 +0000 (20:41 +0200)
commite76617cbab018dd8f41fd6b4ec6740b5303f7e13
tree747ba2a74c49a4978f83cb8d9561f8954462792c
parentf8d14df1abd645c3279b14da43b4a7983d87f89f
Reduce overhead on generic hash write function

* cipher/hash-common.c (_gcry_md_block_write): Remove recursive
function call; Use buf_cpy for copying buffers; Burn stack only once.
--

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