* md.c (gcry_md_hash_buffer): Use shortcut for SHA1
authorWerner Koch <wk@gnupg.org>
Tue, 4 Nov 2003 12:02:53 +0000 (12:02 +0000)
committerWerner Koch <wk@gnupg.org>
Tue, 4 Nov 2003 12:02:53 +0000 (12:02 +0000)
commit68f7fa616ea3872c920b8d0d4bcb964a3fa00e1c
tree417e77f8bcee2421ad2ccf5eaaeaafdf92100f53
parentf13d7964c639dffa8ec9b77cc211fe83a4c9d6bc
* md.c (gcry_md_hash_buffer): Use shortcut for SHA1
* sha1.c (_gcry_sha1_hash_buffer): New.

* random.c: Reformatted most functions.
(mix_pool): Moved the failsafe_digest from global
scope to here.
(do_fast_random_poll): Use the generic fucntions even if a fast
gathering function has been used.
(read_pool): Detect a fork and retry.
(gcry_randomize, get_random_bytes): Don't distinguish anymore
between weak and strong random.
(gcry_create_nonce): New.
cipher/ChangeLog
cipher/md.c
cipher/random.c
cipher/rndw32.c
cipher/sha1.c