md: Add function gcry_md_hash_buffers.
authorWerner Koch <wk@gnupg.org>
Sat, 7 Sep 2013 08:06:46 +0000 (10:06 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 10 Sep 2013 20:09:15 +0000 (22:09 +0200)
commitf3bca0c77c4979504f95fdbc618f7458e61e3e45
tree9001cc1a8709dbe0f80ab3747ab062ac15e67246
parent0a28b2d2c9181a536fc894e24626714832619923
md: Add function gcry_md_hash_buffers.

* src/gcrypt.h.in (gcry_buffer_t): new.
(gcry_md_hash_buffers): New.
* src/visibility.c, src/visibility.h: Add wrapper for new function.
* src/libgcrypt.def, src/libgcrypt.vers: Export new function.
* cipher/md.c (gcry_md_hash_buffers): New.
* cipher/sha1.c (_gcry_sha1_hash_buffers): New.
* tests/basic.c (check_one_md_multi): New.
(check_digests): Run that test.
* tests/hmac.c (check_hmac_multi): New.
(main): Run that test.

Signed-off-by: Werner Koch <wk@gnupg.org>
12 files changed:
NEWS
cipher/md.c
cipher/sha1.c
doc/gcrypt.texi
src/cipher.h
src/gcrypt.h.in
src/libgcrypt.def
src/libgcrypt.vers
src/visibility.c
src/visibility.h
tests/basic.c
tests/hmac.c