random: Replace RMD160 by SHA-1 for mixing the CSPRNG pool.
authorWerner Koch <wk@gnupg.org>
Thu, 31 Mar 2016 17:33:43 +0000 (19:33 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 31 Mar 2016 17:33:43 +0000 (19:33 +0200)
commita9cbe2d1f6a517a831517da8bc1d29e3e0b2c0c0
tree7b3e97f8bf5ae6c1388684e39653d40b1542eca8
parent142a479a484cb4e84d0561be9b05b44dac9e6fe2
random: Replace RMD160 by SHA-1 for mixing the CSPRNG pool.

* cipher/sha1.c (_gcry_sha1_mixblock_init): New.
(_gcry_sha1_mixblock): New.
* random/random-csprng.c: Include sha1.h instead of rmd.h.
(mix_pool): Use SHA-1 instead of RIPE-MD-160 for mixing.

Signed-off-by: Werner Koch <wk@gnupg.org>
cipher/sha1.c
cipher/sha1.h
doc/gcrypt.texi
random/random-csprng.c