From 15ca72eba1ef4d940a05f6bcf92986b2cecad12e Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Tue, 11 Oct 2005 17:41:16 +0000 Subject: [PATCH] * gc.h (gc_hash_buffer): Add doc. --- lib/ChangeLog | 4 ++++ lib/gc.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/lib/ChangeLog b/lib/ChangeLog index 9b0ed2c6a..ec98e7d55 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2005-10-11 Simon Josefsson + + * gc.h (gc_hash_buffer): Add doc. + 2005-10-11 Bruno Haible * strcasecmp.c: Include limits.h. diff --git a/lib/gc.h b/lib/gc.h index f9b66d1bf..9932770d8 100644 --- a/lib/gc.h +++ b/lib/gc.h @@ -63,6 +63,12 @@ extern void gc_set_allocators (gc_malloc_t func_malloc, 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__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); -- 2.11.0