bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gc_hash_buffer


From: Simon Josefsson
Subject: Re: gc_hash_buffer
Date: Tue, 11 Oct 2005 21:17:16 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Bruno Haible <address@hidden> writes:

> Simon Josefsson wrote:
>> +
>> +/* 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);
>
> Thanks. And what is the 'int' return value? Is it somehow related to the
> Gc_rc type?

Yep, thanks, I installed this:

--- gc.h        11 Oct 2005 19:39:38 +0200      1.3
+++ gc.h        11 Oct 2005 21:16:48 +0200      
@@ -68,7 +68,8 @@
    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. */
+   must be 16 bytes.  The return value is 0 (GC_OK) on success, or
+   another Gc_rc error code. */
 extern int
 gc_hash_buffer (int hash, const void *in, size_t inlen, char *out);
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]