changeset 6356:998625a579ed

* gc.h (gc_hash_buffer): Add doc.
author Simon Josefsson <simon@josefsson.org>
date Tue, 11 Oct 2005 17:41:16 +0000
parents bbcddcd96f1f
children 9abdb1386cc0
files lib/ChangeLog lib/gc.h
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,7 @@
+2005-10-11  Simon Josefsson  <jas@extundo.com>
+
+	* gc.h (gc_hash_buffer): Add doc.
+
 2005-10-11  Bruno Haible  <bruno@clisp.org>
 
 	* strcasecmp.c: Include limits.h.
--- a/lib/gc.h
+++ b/lib/gc.h
@@ -63,6 +63,12 @@
 			       gc_free_t func_free);
 
 /* Hashes. */
+
+/* Compute a hash value over buffer IN of INLEN bytes size using the
+   algorithm HASH, placing the result in the pre-allocated buffer OUT.
+   The required size of OUT depends on HASH, and is generally
+   GC_<HASH>_DIGEST_SIZE.  For example, for GC_MD5 the output buffer
+   must be 16 bytes. */
 extern int
 gc_hash_buffer (int hash, const void *in, size_t inlen, char *out);