md: Optimize gcry_md_hash_buffers for SHA-256 and SHA-512.
authorWerner Koch <wk@gnupg.org>
Fri, 16 Jun 2017 14:53:33 +0000 (16:53 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 16 Jun 2017 14:53:33 +0000 (16:53 +0200)
commite6f90a392a1fd59b19b16f7a2bc7c439ae369d5f
tree3163fcd815a0113396bda05c181854b70e3803af
parentee3a74f5539cbc5182ce089994e37c16ce612149
md: Optimize gcry_md_hash_buffers for SHA-256 and SHA-512.

* cipher/sha256.c (_gcry_sha256_hash_buffer): New.
(_gcry_sha256_hash_buffers): New.
* cipher/sha512.c (_gcry_sha512_hash_buffer): New.
(_gcry_sha512_hash_buffers): New.
* cipher/md.c (_gcry_md_hash_buffer): Optimize for SHA246 and SHA512.
(_gcry_md_hash_buffers): Ditto.

Signed-off-by: Werner Koch <wk@gnupg.org>
cipher/md.c
cipher/sha256.c
cipher/sha512.c
src/cipher.h