Add hash_buffer and hash_buffers for SHA-224, SHA-385, SHA3 and BLAKE2
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sun, 17 Jun 2018 17:03:28 +0000 (20:03 +0300)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Tue, 19 Jun 2018 16:29:25 +0000 (19:29 +0300)
commit59c4e344eec61cff45185e1caea6815b3266a0f8
tree4ce23c469a301ea9c40e6fa472e54ebb15a6a384
parentb136703ea0ddbd9fec6dfd1f8dfda8373653ba39
Add hash_buffer and hash_buffers for SHA-224, SHA-385, SHA3 and BLAKE2

* cipher/blake2.c (DEFINE_BLAKE2_VARIANT): Add hash_buffer and
hash_buffers functions for BLAKE2 variants.
* cipher/keccak.c (_gcry_sha3_hash_buffer, _gcry_sha3_hash_buffers)
(_gcry_sha3_224_hash_buffer, _gcry_sha3_224_hash_buffers)
(_gcry_sha3_256_hash_buffer, _gcry_sha3_256_hash_buffers)
(_gcry_sha3_384_hash_buffer, _gcry_sha3_384_hash_buffers)
(_gcry_sha3_512_hash_buffer, _gcry_sha3_512_hash_buffers): New.
* cipher/sha256.c (_gcry_sha224_hash_buffer)
(_gcry_sha224_hash_buffers): New.
* cipher/sha512.c (_gcry_sha384_hash_buffer)
(_gcry_sha384_hash_buffers): New.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
cipher/blake2.c
cipher/keccak.c
cipher/sha256.c
cipher/sha512.c